Several minor fixes
raid_arry check should return an empty array, not NoneType not all systems will have IPv6 defined, so try to get the information.. if not just continue on. Vendor Supermicro was incomplete.
This commit is contained in:
parent
5b7e349aa3
commit
1c3ea69d9e
3 changed files with 13 additions and 3 deletions
|
@ -60,7 +60,11 @@ class Network():
|
|||
continue
|
||||
|
||||
ip_addr = netifaces.ifaddresses(interface).get(netifaces.AF_INET)
|
||||
ip_addr += netifaces.ifaddresses(interface).get(netifaces.AF_INET6)
|
||||
try:
|
||||
ip_addr += netifaces.ifaddresses(interface).get(netifaces.AF_INET6)
|
||||
except:
|
||||
logging.debug('No IPv6 addresses defined.')
|
||||
|
||||
if NETWORK_IGNORE_IPS and ip_addr:
|
||||
for i, ip in enumerate(ip_addr):
|
||||
if re.match(NETWORK_IGNORE_IPS, ip['addr']):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue