-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When using SkipVariablePrompt the variables of parent are not resolved.
dotnet-computeclient/src/Eryph.ComputeClient.Commands/Catlets/CatletConfigCmdlet.cs
Lines 45 to 63 in 1fef168
| if (!skipVariablesPrompt && GetApiVersion().IsCompatible(1, 1)) | |
| { | |
| var serializedConfig = CatletConfigJsonSerializer.SerializeToElement(catletConfig); | |
| var operation = Factory.CreateCatletsClient().PopulateConfigVariables( | |
| new PopulateCatletConfigVariablesRequest(serializedConfig) | |
| { | |
| CorrelationId = Guid.NewGuid(), | |
| }); | |
| var completedOperation = WaitForOperation(operation); | |
| if (completedOperation.Result is CatletConfigOperationResult configResult) | |
| { | |
| var populatedConfig = CatletConfigJsonSerializer.Deserialize(configResult.Configuration); | |
| catletConfig.Variables = populatedConfig.Variables; | |
| } | |
| } | |
| if (catletConfig.Variables is not { Length: > 0 }) | |
| return true; |
Expected
If API version is compatible variables should be resolved from parent, then it should be decided if variable prompt is necessary / disabled.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working