From bf466797475c6c781ab4892b0e2e2a3f699a28d1 Mon Sep 17 00:00:00 2001 From: James Falcon Date: Tue, 12 Dec 2023 15:30:06 -0600 Subject: [PATCH] mypy --- cloudinit/cmd/status.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cloudinit/cmd/status.py b/cloudinit/cmd/status.py index fb4eaa9dd7f..249fc91155a 100644 --- a/cloudinit/cmd/status.py +++ b/cloudinit/cmd/status.py @@ -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() @@ -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