forked from juju/juju
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provider/azure: fix volume detachment
When detaching the final volume from an Azure machine, we were setting the VM's data disks field to nil, rather than a pointer to an empty slice. This was apparently ignored by Azure, so the data disk remained attached. Setting the field so it is a pointer to an empty slice causes the field to be marshalled, and Azure detaches the disk.
- Loading branch information
Showing
2 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters