Skip to content

Commit 770074a

Browse files
authored
Merge pull request #2038 from skazi0/restricted-crowbar-upgrade-reboot
upgrade: Allow transition from crowbar_upgrade to reboot (trivial)
2 parents b75a61d + 8abb973 commit 770074a

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)