mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +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_)
|
destroy(vm_)
|
||||||
directories = set()
|
directories = set()
|
||||||
for disk in disks:
|
for disk in disks:
|
||||||
os.remove(disks[disk])
|
os.remove(disks[disk]['file'])
|
||||||
directories.add(os.path.dirname(disks[disk]))
|
directories.add(os.path.dirname(disks[disk]['file']))
|
||||||
if dirs:
|
if dirs:
|
||||||
for dir_ in directories:
|
for dir_ in directories:
|
||||||
shutil.rmtree(dir_)
|
shutil.rmtree(dir_)
|
||||||
|
Loading…
Reference in New Issue
Block a user