mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[libvirt] expose node hostname
This commit is contained in:
parent
131259f0a5
commit
1ed7a6b2ee
2 changed files with 2 additions and 0 deletions
lib/fog/libvirt
|
@ -24,6 +24,7 @@ module Fog
|
|||
attribute :manufacturer
|
||||
attribute :product
|
||||
attribute :serial
|
||||
attribute :hostname
|
||||
|
||||
end
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ module Fog
|
|||
node_hash[attr] = node_attr(attr, xml)
|
||||
end
|
||||
|
||||
node_hash[:hostname] = client.hostname
|
||||
[node_hash]
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue