Skip to content

Commit b3ad722

Browse files
authored
Merge pull request #2039 from skazi0/restricted-crowbar-upgrade-reboot-8
[5.0] upgrade: Allow transition from crowbar_upgrade to reboot (trivial)
2 parents e610ec0 + 626304b commit b3ad722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crowbar_framework/lib/crowbar/state.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def valid_restricted_transition?(current, target)
8282
"recovering" => ["readying", "reboot", "shutdown", "problem"],
8383
"problem" => ["readying", "reboot", "shutdown"],
8484
## other states that can be set by rails app
85-
# upgrade is controlled by rails app
86-
"crowbar_upgrade" => [],
85+
# upgrade is entered by rails app but left by crowbar_join/reboot
86+
"crowbar_upgrade" => ["reboot"],
8787
"confupdate" => ["hardware-updating"],
8888
"update" => ["hardware-updating"],
8989
# noupdate is when we have no up-to-date data from chef; in theory

0 commit comments

Comments
 (0)