Merge "Add check if there is no default gateway"
This commit is contained in:
commit
15310d6989
8
agent
8
agent
|
@ -333,9 +333,11 @@ class NodeAgent
|
|||
iface = $2
|
||||
end
|
||||
result = _get_all_interfaces_info
|
||||
result[:default_gateway] = gw
|
||||
result[:default_interface] = iface
|
||||
result[:mac] = @facter["macaddress_#{iface.gsub('-', '_')}"].upcase
|
||||
if gw and iface
|
||||
result[:default_gateway] = gw
|
||||
result[:default_interface] = iface
|
||||
result[:mac] = @facter["macaddress_#{iface.gsub('-', '_')}"].upcase
|
||||
end
|
||||
result
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue