1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #2946 from fmbiete/xenserver_credentials

XenServer - attr_reader for Compute > connection > credentials
This commit is contained in:
Wesley Beary 2014-07-28 09:29:07 -05:00
commit 5025c5b417
2 changed files with 5 additions and 0 deletions

View file

@ -113,6 +113,9 @@ module Fog
request :snapshot_revert
class Real
attr_reader :connection
def initialize(options={})
@host = options[:xenserver_url]
@username = options[:xenserver_username]

View file

@ -13,6 +13,8 @@ module Fog
class Connection
require 'xmlrpc/client'
attr_reader :credentials
def initialize(host, timeout)
@factory = XMLRPC::Client.new(host, '/')