Skip to content

Commit

Permalink
[Containerapp] Fix #30828: az containerapp job stop: Fix `TypeError…
Browse files Browse the repository at this point in the history
…` when `--job-execution-name` is not specified (#30941)
  • Loading branch information
Greedygre authored Mar 7, 2025
1 parent 93490f5 commit 1c20fa6
Show file tree
Hide file tree
Showing 3 changed files with 1,770 additions and 1,452 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,8 @@ def stop_job(cls, cmd, resource_group_name, name, job_execution_name):
resource_group_name,
name,
cls.api_version)
r = send_raw_request(cmd.cli_ctx, "POST", request_url)
return r.json()
else:
url_fmt = "{}/subscriptions/{}/resourceGroups/{}/providers/Microsoft.App/jobs/{}/stop/{}?api-version={}"
request_url = url_fmt.format(
Expand All @@ -1021,9 +1023,8 @@ def stop_job(cls, cmd, resource_group_name, name, job_execution_name):
name,
job_execution_name,
cls.api_version)

r = send_raw_request(cmd.cli_ctx, "POST", request_url)
return r
r = send_raw_request(cmd.cli_ctx, "POST", request_url)
return r

@classmethod
def get_executions(cls, cmd, resource_group_name, name):
Expand Down
Loading

0 comments on commit 1c20fa6

Please sign in to comment.