Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

az-cli fails with 'NoneType' object is not callable Edited

We have a job, that cleans out container registry. If you run these commands locally, everything seems to work fine. The pipeline itself was fine, no changes were introduced. Today it just stopped working all of a sudden.

- az account set --subscription "Staging Subscription"
- az acr run --cmd "acr purge --filter 'b2b:.*' --untagged --ago 30d" --registry "staging" /dev/null
- az account set --subscription "Production Subscription"
- az acr run --cmd "acr purge --filter 'b2b:.*' --untagged --ago 180d" --registry "production" /dev/null

 

The trace as follows. Any ideas?

+ az acr run --cmd "acr purge --filter 'b2b:.*' --untagged --ago 30d" --registry "staging" /dev/nullERROR: The command failed with an unexpected error. Here is the traceback:ERROR: 'NoneType' object is not callableTraceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke cmd_result = self.invocation.execute(args) File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute raise ex File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job result = cmd_copy(params) File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__ return self.handler(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler return op(**command_args) File "/usr/local/lib/python3.8/site-packages/azure/cli/command_modules/acr/run.py", line 90, in acr_run platform=PlatformProperties(TypeError: 'NoneType' object is not callableTo open an issue, please run: 'az feedback'

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

177 views 0 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you