mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Reinitialize if connection is reset
This commit is contained in:
parent
73c61ec26b
commit
dc906164c1
1 changed files with 6 additions and 0 deletions
|
|
@ -101,6 +101,12 @@ class VsphereHelper
|
||||||
|
|
||||||
|
|
||||||
def find_pool poolname
|
def find_pool poolname
|
||||||
|
begin
|
||||||
|
@connection.serviceInstance.CurrentTime
|
||||||
|
rescue
|
||||||
|
initialize()
|
||||||
|
end
|
||||||
|
|
||||||
datacenter = @connection.serviceInstance.find_datacenter
|
datacenter = @connection.serviceInstance.find_datacenter
|
||||||
base = datacenter.hostFolder
|
base = datacenter.hostFolder
|
||||||
pools = poolname.split('/')
|
pools = poolname.split('/')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue