Skip to content

Commit

Permalink
fix system upgrade-check
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Oct 25, 2024
1 parent befce50 commit 3bc1de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def run_module():
if not module.check_mode:
with Session(module=module) as s:
upgrade_status = get_upgrade_status(s)
if upgrade_status['status'] != 'done':
if upgrade_status['status'] not in ['done', 'error']:
module.fail_json(
f'System may be upgrading! System-actions are currently blocked! Details: {upgrade_status}'
)
Expand Down

0 comments on commit 3bc1de5

Please sign in to comment.