fix configuration_parameters (#9713)

This commit is contained in:
Sylvia Moss 2020-08-05 16:57:12 +02:00 committed by GitHub
parent f295b6d2e5
commit dd37a10355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -51,12 +51,12 @@ func (s *StepConfigParams) Run(_ context.Context, state multistep.StateBag) mult
if s.Config.ToolsUpgradePolicy { if s.Config.ToolsUpgradePolicy {
info.ToolsUpgradePolicy = "UpgradeAtPowerCycle" info.ToolsUpgradePolicy = "UpgradeAtPowerCycle"
} }
}
ui.Say("Adding configuration parameters...") ui.Say("Adding configuration parameters...")
if err := vm.AddConfigParams(configParams, info); err != nil { if err := vm.AddConfigParams(configParams, info); err != nil {
state.Put("error", fmt.Errorf("error adding configuration parameters: %v", err)) state.Put("error", fmt.Errorf("error adding configuration parameters: %v", err))
return multistep.ActionHalt return multistep.ActionHalt
}
} }
return multistep.ActionContinue return multistep.ActionContinue