mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Remove unused snapshot functions
This commit is contained in:
parent
6d4e326011
commit
bf0150de4b
1 changed files with 0 additions and 16 deletions
|
|
@ -20,22 +20,6 @@ class VsphereHelper
|
||||||
:insecure => true
|
:insecure => true
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_snapshot vm, snapname
|
|
||||||
search_child_snaps vm.snapshot.rootSnapshotList, snapname
|
|
||||||
end
|
|
||||||
|
|
||||||
def search_child_snaps tree, snapname
|
|
||||||
snapshot = nil
|
|
||||||
tree.each do |child|
|
|
||||||
if child.name == snapname
|
|
||||||
snapshot ||= child.snapshot
|
|
||||||
else
|
|
||||||
snapshot ||= search_child_snaps child.childSnapshotList, snapname
|
|
||||||
end
|
|
||||||
end
|
|
||||||
snapshot
|
|
||||||
end
|
|
||||||
|
|
||||||
def find_customization name
|
def find_customization name
|
||||||
csm = @connection.serviceContent.customizationSpecManager
|
csm = @connection.serviceContent.customizationSpecManager
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue