mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Fix disks reference in purge to reflect disks api change
This commit is contained in:
parent
9de72d3510
commit
41ed9b8655
@ -392,8 +392,8 @@ def purge(vm_, dirs=False):
|
||||
destroy(vm_)
|
||||
directories = set()
|
||||
for disk in disks:
|
||||
os.remove(disks[disk])
|
||||
directories.add(os.path.dirname(disks[disk]))
|
||||
os.remove(disks[disk]['file'])
|
||||
directories.add(os.path.dirname(disks[disk]['file']))
|
||||
if dirs:
|
||||
for dir_ in directories:
|
||||
shutil.rmtree(dir_)
|
||||
|
Loading…
Reference in New Issue
Block a user