1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[libvirt|compute] handle missing <system> tag in libvirt node info

Fixes #1652: libvirt provider requires a field that libvirt specifies as
optional
This commit is contained in:
Dominic Cleal 2013-03-19 15:55:48 +00:00
parent 7641e18576
commit 34f49feade

View file

@ -14,7 +14,7 @@ module Fog
node_hash[:uri] = client.uri
xml = client.sys_info rescue nil
[:uuid, :manufacturer, :product, :serial].each do |attr|
node_hash[attr] = node_attr(attr, xml)
node_hash[attr] = node_attr(attr, xml) rescue nil
end if xml
node_hash[:hostname] = client.hostname