mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -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)
|
||||
if vm.snapshot
|
||||
get_snapshot_list(vm.snapshot.rootSnapshotList, snapshotname)
|
||||
else
|
||||
return []
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -187,7 +185,7 @@ module Vmpooler
|
|||
end
|
||||
|
||||
def get_snapshot_list(tree, snapshotname)
|
||||
snapshot = []
|
||||
snapshot = nil
|
||||
|
||||
tree.each do |child|
|
||||
if child.name == snapshotname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue