Skip to content

Commit

Permalink
Merge pull request #39899 from techhat/cleanupdisks
Browse files Browse the repository at this point in the history
Update cleanup function for azure
  • Loading branch information
Nicole Thomas committed Mar 8, 2017
2 parents fcf95f3 + baf4579 commit caf10e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/cloud/clouds/msazure.py
Expand Up @@ -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))
Expand Down

0 comments on commit caf10e9

Please sign in to comment.