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:
commit
5025c5b417
2 changed files with 5 additions and 0 deletions
|
@ -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]
|
||||
|
|
|
@ -13,6 +13,8 @@ module Fog
|
|||
|
||||
class Connection
|
||||
require 'xmlrpc/client'
|
||||
|
||||
attr_reader :credentials
|
||||
|
||||
def initialize(host, timeout)
|
||||
@factory = XMLRPC::Client.new(host, '/')
|
||||
|
|
Loading…
Add table
Reference in a new issue