From 57a1801b2553958653389bb741997a96a839192b Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Mon, 21 Mar 2022 13:17:20 -0700 Subject: [PATCH] Fix flake linter --- src/containerapp/azext_containerapp/_clients.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/containerapp/azext_containerapp/_clients.py b/src/containerapp/azext_containerapp/_clients.py index ada66cacf0d..77cf596c8bf 100644 --- a/src/containerapp/azext_containerapp/_clients.py +++ b/src/containerapp/azext_containerapp/_clients.py @@ -65,7 +65,7 @@ def poll(cmd, request_url, poll_if_status): # pylint: disable=inconsistent-retu delete_statuses = ["scheduledfordelete", "cancelled"] - if poll_if_status not in delete_statuses: # Catch "not found" errors if polling for delete + if poll_if_status not in delete_statuses: # Catch "not found" errors if polling for delete raise e @@ -144,7 +144,7 @@ def delete(cls, cmd, resource_group_name, name, no_wait=False): r = send_raw_request(cmd.cli_ctx, "DELETE", request_url) if no_wait: - return # API doesn't return JSON (it returns no content) + return # API doesn't return JSON (it returns no content) elif r.status_code in [200, 201, 202, 204]: url_fmt = "{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.App/containerApps/{}?api-version={}" request_url = url_fmt.format( @@ -162,7 +162,6 @@ def delete(cls, cmd, resource_group_name, name, no_wait=False): pass logger.warning('Containerapp successfully deleted') - @classmethod def show(cls, cmd, resource_group_name, name): management_hostname = cmd.cli_ctx.cloud.endpoints.resource_manager