From 1ed7a6b2ee9959a051980e1ec67983a379700cb8 Mon Sep 17 00:00:00 2001 From: Ohad Levy Date: Sun, 8 Apr 2012 16:16:28 +0300 Subject: [PATCH] [libvirt] expose node hostname --- lib/fog/libvirt/models/compute/node.rb | 1 + lib/fog/libvirt/requests/compute/get_node_info.rb | 1 + 2 files changed, 2 insertions(+) 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