diff --git a/lib/fog/libvirt/models/compute/node.rb b/lib/fog/libvirt/models/compute/node.rb index 393edfe5d..43d37210b 100644 --- a/lib/fog/libvirt/models/compute/node.rb +++ b/lib/fog/libvirt/models/compute/node.rb @@ -24,6 +24,7 @@ module Fog attribute :manufacturer attribute :product attribute :serial + attribute :hostname end diff --git a/lib/fog/libvirt/requests/compute/get_node_info.rb b/lib/fog/libvirt/requests/compute/get_node_info.rb index 39ca842a7..6cff387f1 100644 --- a/lib/fog/libvirt/requests/compute/get_node_info.rb +++ b/lib/fog/libvirt/requests/compute/get_node_info.rb @@ -17,6 +17,7 @@ module Fog node_hash[attr] = node_attr(attr, xml) end + node_hash[:hostname] = client.hostname [node_hash] end