Skip to content

Commit d4e65ce

Browse files
anmazzottidavidcassany
authored andcommitted
Fix inversed reset options (#604)
Signed-off-by: Andrea Mazzotti <[email protected]> (cherry picked from commit e523a25)
1 parent 3344ea6 commit d4e65ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/elementalcli/elementalcli.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright © 2022 - 2023 SUSE LLC
2+
Copyright © 2022 - 2024 SUSE LLC
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -107,8 +107,8 @@ func mapToResetEnv(conf elementalv1.Reset) []string {
107107
// See GetResetKeyEnvMap() in https://github.com/rancher/elemental-toolkit/blob/main/pkg/constants/constants.go
108108
variables = append(variables, formatEV("ELEMENTAL_RESET_CLOUD_INIT", strings.Join(conf.ConfigURLs[:], ",")))
109109
variables = append(variables, formatEV("ELEMENTAL_RESET_SYSTEM", conf.SystemURI))
110-
variables = append(variables, formatEV("ELEMENTAL_RESET_PERSISTENT", strconv.FormatBool(conf.ResetOEM)))
111-
variables = append(variables, formatEV("ELEMENTAL_RESET_OEM", strconv.FormatBool(conf.ResetPersistent)))
110+
variables = append(variables, formatEV("ELEMENTAL_RESET_PERSISTENT", strconv.FormatBool(conf.ResetPersistent)))
111+
variables = append(variables, formatEV("ELEMENTAL_RESET_OEM", strconv.FormatBool(conf.ResetOEM)))
112112
// See GetRunKeyEnvMap() in https://github.com/rancher/elemental-toolkit/blob/main/pkg/constants/constants.go
113113
variables = append(variables, formatEV("ELEMENTAL_POWEROFF", strconv.FormatBool(conf.PowerOff)))
114114
variables = append(variables, formatEV("ELEMENTAL_REBOOT", strconv.FormatBool(conf.Reboot)))

0 commit comments

Comments
 (0)