Skip to content

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

Merged
zhoxing-ms merged 5 commits into
Azure:mainfrom
yanzhudd:fix_image_copy
Nov 30, 2022
Merged

[Compute] Fix #5258: az image copy: Fix expected not NoneType error#5274
zhoxing-ms merged 5 commits into
Azure:mainfrom
yanzhudd:fix_image_copy

Conversation

@yanzhudd
Copy link
Copy Markdown
Contributor

@yanzhudd yanzhudd commented Aug 25, 2022


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.

@ghost ghost requested review from yonzhan and zhoxing-ms August 25, 2022 10:14
@ghost ghost added the Auto-Assign Auto assign by bot label Aug 25, 2022
@ghost ghost requested a review from wangzelin007 August 25, 2022 10:14
@ghost ghost assigned zhoxing-ms Aug 25, 2022
@ghost ghost added this to the Aug 2022 (2022-09-06) milestone Aug 25, 2022
@ghost ghost added the Compute label Aug 25, 2022
@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Aug 25, 2022

Compute

Comment thread src/image-copy/azext_imagecopy/create_target.py Outdated
Copy link
Copy Markdown
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhoxing-ms zhoxing-ms merged commit 8e47d9d into Azure:main Nov 30, 2022
@azclibot
Copy link
Copy Markdown
Collaborator

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

@yanzhudd yanzhudd deleted the fix_image_copy branch November 30, 2022 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot Compute

Projects

None yet

Development

Successfully merging this pull request may close these issues.

az image copy failed with error

6 participants