Skip to content

Commit

Permalink
Fix: ui_node: prevent traceback on node online
Browse files Browse the repository at this point in the history
  • Loading branch information
freishutz committed Jan 9, 2024
1 parent fd0d8ab commit 72f6851
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crmsh/ui_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ def do_online(self, context, *args):
return

cib = xmlutil.cibdump2elem()
if cib is None:
return False

Check warning on line 440 in crmsh/ui_node.py

View check run for this annotation

Codecov / codecov/patch

crmsh/ui_node.py#L440

Added line #L440 was not covered by tests
# IMPORTANT: Do NOT call cibdump2elem twice, or you risk a race.
# Really use the same xml as "original" and basis for the changes.
# Thus the "deepcopy" here; see also do_standby().
Expand Down

0 comments on commit 72f6851

Please sign in to comment.