Skip to content

Commit

Permalink
Fix flake linter
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinsID committed Mar 21, 2022
1 parent 0624738 commit 57a1801
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/containerapp/azext_containerapp/_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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(
Expand All @@ -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
Expand Down

0 comments on commit 57a1801

Please sign in to comment.