lib/fog/xenserver/compute.rb in fog-1.18.0 vs lib/fog/xenserver/compute.rb in fog-1.19.0
- old
+ new
@@ -10,14 +10,49 @@
requires :xenserver_username
requires :xenserver_password
requires :xenserver_url
recognizes :xenserver_defaults
+ recognizes :xenserver_timeout
model_path 'fog/xenserver/models/compute'
+ model :blob
+ collection :blobs
+ model :bond
+ collection :bonds
+ model :crash_dump
+ collection :crash_dumps
+ model :dr_task
+ collection :dr_tasks
+ model :gpu_group
+ collection :gpu_groups
+ model :host_crash_dump
+ collection :host_crash_dumps
+ model :host_patch
+ collection :host_patchs
+ model :pci
+ collection :pcis
+ model :pgpu
+ collection :pgpus
+ model :pif_metrics
+ collection :pifs_metrics
+ model :pool_patch
+ collection :pool_patchs
+ model :role
+ collection :roles
model :server
collection :servers
+ model :server_appliance
+ collection :server_appliances
+ model :storage_manager
+ collection :storage_managers
+ model :tunnel
+ collection :tunnels
+ model :vmpp
+ collection :vmpps
+ model :vtpm
+ collection :vtpms
model :host
collection :hosts
collection :vifs
model :vif
collection :storage_repositories
@@ -84,10 +119,11 @@
def initialize(options={})
@host = options[:xenserver_url]
@username = options[:xenserver_username]
@password = options[:xenserver_password]
@defaults = options[:xenserver_defaults] || {}
- @connection = Fog::XenServer::Connection.new(@host)
+ @timeout = options[:xenserver_timeout] || 30
+ @connection = Fog::XenServer::Connection.new(@host, @timeout)
@connection.authenticate(@username, @password)
end
def reload
@connection.authenticate(@username, @password)