mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Fix snapshort revert functionality
This commit is contained in:
parent
1689133b19
commit
85aad61192
1 changed files with 1 additions and 3 deletions
|
|
@ -102,8 +102,6 @@ module Vmpooler
|
||||||
def find_snapshot(vm, snapshotname)
|
def find_snapshot(vm, snapshotname)
|
||||||
if vm.snapshot
|
if vm.snapshot
|
||||||
get_snapshot_list(vm.snapshot.rootSnapshotList, snapshotname)
|
get_snapshot_list(vm.snapshot.rootSnapshotList, snapshotname)
|
||||||
else
|
|
||||||
return []
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -187,7 +185,7 @@ module Vmpooler
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_snapshot_list(tree, snapshotname)
|
def get_snapshot_list(tree, snapshotname)
|
||||||
snapshot = []
|
snapshot = nil
|
||||||
|
|
||||||
tree.each do |child|
|
tree.each do |child|
|
||||||
if child.name == snapshotname
|
if child.name == snapshotname
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue