tox fixes

This commit is contained in:
Thomas Davis 2020-01-20 16:38:10 -08:00
parent 0c3b9dc2fc
commit befb3395b3

View file

@ -29,7 +29,6 @@ class Network():
for c in dcim_c[choice]: for c in dcim_c[choice]:
self.dcim_choices[choice][c['label']] = c['value'] self.dcim_choices[choice][c['label']] = c['value']
self.ipam_choices = {} self.ipam_choices = {}
ipam_c = nb.ipam.choices() ipam_c = nb.ipam.choices()
@ -38,7 +37,6 @@ class Network():
for c in ipam_c[choice]: for c in ipam_c[choice]:
self.ipam_choices[choice][c['label']] = c['value'] self.ipam_choices[choice][c['label']] = c['value']
def scan(self): def scan(self):
for interface in os.listdir('/sys/class/net/'): for interface in os.listdir('/sys/class/net/'):
# ignore if it's not a link (ie: bonding_masters etc) # ignore if it's not a link (ie: bonding_masters etc)