[libvirt] expose node hostname

This commit is contained in:
Ohad Levy 2012-04-08 16:16:28 +03:00 committed by Ohad Levy
parent 131259f0a5
commit 1ed7a6b2ee
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ module Fog
attribute :manufacturer
attribute :product
attribute :serial
attribute :hostname
end

View File

@ -17,6 +17,7 @@ module Fog
node_hash[attr] = node_attr(attr, xml)
end
node_hash[:hostname] = client.hostname
[node_hash]
end