Merge pull request #19512 from baude/userkeyswitch

Fix regression for hyperv
This commit is contained in:
OpenShift Merge Robot 2023-08-04 19:13:50 +02:00 committed by GitHub
commit 1304162b1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ func (m *HyperVMachine) Init(opts machine.InitOptions) (bool, error) {
user = machine.DefaultIgnitionUserName
}
// Write the ignition file
if err := m.writeIgnitionConfigFile(opts, key, user); err != nil {
if err := m.writeIgnitionConfigFile(opts, user, key); err != nil {
return false, err
}
// The ignition file has been written. We now need to