lib/connection.rb in forj-0.0.39 vs lib/connection.rb in forj-0.0.40
- old
+ new
@@ -37,11 +37,11 @@
Logging.fatal(1, 'Internal Error: Missing global $HPC_ACCOUNTS') if not $HPC_ACCOUNTS
@oConfig = oConfig
@sAccountName = @oConfig.get('account_name')
@provider='HP' # TODO: Support multiple provider. (Generic Provider object required)
- @sAccountName = @oConfig.get('provider') if not @sAccountName
+ @sAccountName = @oConfig.get(:provider) if not @sAccountName
@sAccountName = 'hpcloud' if not @sAccountName
@credentials = get_credentials()
# Trying to get Compute object
@@ -69,11 +69,11 @@
})
rescue => e
if not oSSLError.ErrorDetected(e.message,e.backtrace)
retry
end
- Logging.fatal(1, 'Compute: Unable to connect.')
+ Logging.fatal(1, 'Compute: Unable to connect.', e)
end
end
def network_connect
# Trying to get Network object
@@ -89,10 +89,10 @@
})
rescue => e
if not oSSLError.ErrorDetected(e.message,e.backtrace)
retry
end
- Logging.fatal(1, 'Network: Unable to connect.')
+ Logging.fatal(1, 'Network: Unable to connect.', e)
end
end
def get_credentials()