Skip to content

Conversation

@arrownj
Copy link
Contributor

@arrownj arrownj commented Apr 17, 2020

Description
This PR is to fix #11144

When we try to detach lun from a vmss without data disk, we will meet a NoneType exception.

I add a check here for data disk, and will raise Data disk doesn't exist error for this case.

Testing Guide
az vmss create -g RG -n vmssName --image UbuntuLTS --load-balancer ""
az vmss disk detach -g RG --vmss-name vmssName --lun 0 (prompt error instead of exception)

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


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

@arrownj arrownj requested a review from qwordy as a code owner April 17, 2020 15:16
@arrownj arrownj self-assigned this Apr 17, 2020
@yungezz yungezz added this to the S169 - For Build milestone Apr 18, 2020
@yungezz yungezz added the Compute az vm/vmss/image/disk/snapshot label Apr 18, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Apr 18, 2020

S169

@arrownj arrownj merged commit 66fe624 into Azure:dev Apr 20, 2020
@arrownj arrownj deleted the fix_data_disk_none_issue branch July 29, 2020 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compute az vm/vmss/image/disk/snapshot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detach data disks

4 participants