Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Dmitri Beltjukov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2021

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
AUG Leaders

Atlassian Community Events