azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

[Compute] Fix #5258: `az image copy`: Fix `expected not NoneType` error

Open yanzhudd opened this issue 3 years ago • 1 comments


This checklist is used to make sure that common guidelines for a pull request are followed.

Description

The logic of az image copy command is consisted by several Azure CLI commands. The az image show command is called first, and then the fields in the output will be used to call other commands later. This error mainly due to the hyperVGeneration field of az image show command output is null value and then passed to call other commands. Issue - close: #5258

Related command

az image copy

General Guidelines

  • [ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • [ ] Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

yanzhudd avatar Aug 25 '22 10:08 yanzhudd

Compute

yonzhan avatar Aug 25 '22 10:08 yonzhan

[Release] Update index.json for extension [ image-copy ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=18035&view=results

azclibot avatar Nov 30 '22 03:11 azclibot