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:
parent
7641e18576
commit
34f49feade
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue