Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az acr token delete failed since 2.26.0 #18881

Closed
northtyphoon opened this issue Jul 15, 2021 · 2 comments · Fixed by #19006
Closed

az acr token delete failed since 2.26.0 #18881

northtyphoon opened this issue Jul 15, 2021 · 2 comments · Fixed by #19006
Assignees
Labels
Container Registry az acr Service Attention This issue is responsible by Azure service team.

Comments

@northtyphoon
Copy link
Member

It's a regression from 2.26.0. Log the bug for tracking.

Workaround: Downgrade to version before 2.26.0.

az acr token delete --name $TOKEN_NAME --registry $REGISTRY_NAME --resource-group $REGISTRY_RESOURCE_GROUP_NAME --yes


'TokensOperations' object has no attribute 'delete'
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 657, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 720, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 691, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 328, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acr/token.py", line 103, in acr_token_delete
return client.delete(resource_group_name, registry_name, token_name)
AttributeError: 'TokensOperations' object has no attribute 'delete'

@ghost ghost added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 15, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 15, 2021
@northtyphoon northtyphoon self-assigned this Jul 15, 2021
@yonzhan yonzhan added the Service Attention This issue is responsible by Azure service team. label Jul 16, 2021
@ghost
Copy link

ghost commented Jul 16, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @toddysm, @yugangw-msft, @luisdlp.

Issue Details

It's a regression from 2.26.0. Log the bug for tracking.

Workaround: Downgrade to version before 2.26.0.

az acr token delete --name $TOKEN_NAME --registry $REGISTRY_NAME --resource-group $REGISTRY_RESOURCE_GROUP_NAME --yes


'TokensOperations' object has no attribute 'delete'
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 657, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 720, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 691, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 328, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acr/token.py", line 103, in acr_token_delete
return client.delete(resource_group_name, registry_name, token_name)
AttributeError: 'TokensOperations' object has no attribute 'delete'

Author: northtyphoon
Assignees: northtyphoon
Labels:

Container Registry, Service Attention

Milestone: -

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 16, 2021

route to service team

@rosanch rosanch mentioned this issue Jul 27, 2021
3 tasks
@jsntcy jsntcy added this to the Jul 2021 (2021-08-03) milestone Jul 28, 2021
@jsntcy jsntcy linked a pull request Jul 28, 2021 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Container Registry az acr Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants