When using SkipVariablePrompt the variables of parent are not resolved.
|
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.
AB#757
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
Expected
If API version is compatible variables should be resolved from parent, then it should be decided if variable prompt is necessary / disabled.
AB#757