mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #39899 from techhat/cleanupdisks
Update cleanup function for azure
This commit is contained in:
commit
caf10e9988
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user