Fix regression for hyperv

the method caller for creating the ignition file was accidently
misordered for hyperv.  this regression was caused by aa6827a6.

Signed-off-by: Brent Baude <bbaude@redhat.com>

[NO NEW TESTS NEEDED]
This commit is contained in:
Brent Baude
2023-08-04 09:10:10 -05:00
parent 84dec22349
commit 69e883493b

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