Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealFalcon committed Dec 12, 2023
1 parent 4778072 commit bf46679
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cloudinit/cmd/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ def _get_error_or_running_from_systemd_with_retry(
then we should retry on systemd status so we don't incorrectly report
error state while cloud-init is still running.
"""
last_exception = subp.ProcessExecutionError
while True:
try:
return _get_error_or_running_from_systemd()
Expand Down Expand Up @@ -435,7 +434,7 @@ def get_status_details(
UXAppStatus.DISABLED,
):
systemd_status = _get_error_or_running_from_systemd_with_retry(
status, wait
status, wait=wait
)
if systemd_status:
status = systemd_status
Expand Down

0 comments on commit bf46679

Please sign in to comment.