Skip to content

Commit

Permalink
Dev: crash_test.utils: Drop deprecated 'poweroff' value of 'stonith-a…
Browse files Browse the repository at this point in the history
…ction' option
  • Loading branch information
liangxin1300 committed Jan 9, 2025
1 parent dba1306 commit a78afab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crmsh/crash_test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ def fence_configured(self):
@property
def fence_action(self):
action_result = crmshutils.get_property("stonith-action")
if action_result is None or action_result not in ["off", "poweroff", "reboot"]:
msg_error("Cluster property \"stonith-action\" should be reboot|off|poweroff")
supported_actions = ("off", "reboot")
if action_result is None or action_result not in supported_actions:
msg_error(f"Cluster property \"stonith-action\" should be one of {supported_actions}")
return None
return action_result

Expand Down

0 comments on commit a78afab

Please sign in to comment.