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