(maint) Fix credentials in vsphere_helper

In commit 03ad7bfa46 the global variables for credentials was change to an
instance variable however one reference was missed.  This commit fixes this
omission.
This commit is contained in:
Glenn Sarti 2017-03-08 16:11:07 -08:00
parent 03ad7bfa46
commit 0e0e1c2fac

View file

@ -15,7 +15,7 @@ module Vmpooler
def ensure_connected(connection, credentials) def ensure_connected(connection, credentials)
connection.serviceInstance.CurrentTime connection.serviceInstance.CurrentTime
rescue rescue
connect_to_vsphere $credentials connect_to_vsphere @credentials
end end
def connect_to_vsphere(credentials) def connect_to_vsphere(credentials)