Skip to content

Commit 6aa4d1b

Browse files
committed
fix an issue doesn't repro locally
1 parent de808bc commit 6aa4d1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ResourceManager/ContainerInstance/Commands.ContainerInstance/Commands/NewAzureContainerGroupCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ protected override void ExecuteCmdletInternal()
175175

176176
if (!string.IsNullOrWhiteSpace(this.Command))
177177
{
178-
var commandTokens = PSParser.Tokenize(this.Command, out Collection<PSParseError> errors);
178+
Collection<PSParseError> errors;
179+
var commandTokens = PSParser.Tokenize(this.Command, out errors);
179180
if (errors.Any())
180181
{
181182
throw new ArgumentException($"Invalid 'Command' parameter: {string.Join("; ", errors.Select(err => err.Message))}");

0 commit comments

Comments
 (0)