From 114dba494bb3832028e3afaad594a90c9a20f224 Mon Sep 17 00:00:00 2001 From: Sergio Rubio Date: Mon, 21 Nov 2011 10:09:03 +0100 Subject: [PATCH] Fixes for issues 616 and 617 --- lib/fog/libvirt/compute.rb | 1 + lib/fog/libvirt/models/compute/nodes.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/libvirt/compute.rb b/lib/fog/libvirt/compute.rb index 2557f1f82..1c46f44f0 100644 --- a/lib/fog/libvirt/compute.rb +++ b/lib/fog/libvirt/compute.rb @@ -8,6 +8,7 @@ module Fog class Libvirt < Fog::Service requires :libvirt_uri + recognizes :libvirt_username, :libvirt_password model_path 'fog/libvirt/models/compute' model :server diff --git a/lib/fog/libvirt/models/compute/nodes.rb b/lib/fog/libvirt/models/compute/nodes.rb index 51b96e542..8aae580e8 100644 --- a/lib/fog/libvirt/models/compute/nodes.rb +++ b/lib/fog/libvirt/models/compute/nodes.rb @@ -26,7 +26,7 @@ module Fog node_info[param]=nil end end - node_info[:uri]=connection.connection.uri + node_info[:uri]=connection.uri data << { :raw => node_info } require 'pp' pp node_info