Merge pull request #39899 from techhat/cleanupdisks

Update cleanup function for azure
This commit is contained in:
Nicole Thomas 2017-03-08 16:28:32 -07:00 committed by GitHub
commit caf10e9988

View File

@ -1591,7 +1591,7 @@ def cleanup_unattached_disks(kwargs=None, conn=None, call=None):
for disk in disks:
if disks[disk]['attached_to'] is None:
del_kwargs = {
'name': disks[disk]['name'][0],
'name': disks[disk]['name'],
'delete_vhd': kwargs.get('delete_vhd', False)
}
log.info('Deleting disk {name}, deleting VHD: {delete_vhd}'.format(**del_kwargs))