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
|
iface = $2
|
||||||
end
|
end
|
||||||
result = _get_all_interfaces_info
|
result = _get_all_interfaces_info
|
||||||
result[:default_gateway] = gw
|
if gw and iface
|
||||||
result[:default_interface] = iface
|
result[:default_gateway] = gw
|
||||||
result[:mac] = @facter["macaddress_#{iface.gsub('-', '_')}"].upcase
|
result[:default_interface] = iface
|
||||||
|
result[:mac] = @facter["macaddress_#{iface.gsub('-', '_')}"].upcase
|
||||||
|
end
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue