mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Style fix.
This commit is contained in:
@@ -1067,7 +1067,8 @@ class LinuxNetwork(Network):
|
|||||||
)
|
)
|
||||||
|
|
||||||
for path in glob.glob('/sys/class/net/*'):
|
for path in glob.glob('/sys/class/net/*'):
|
||||||
if not os.path.isdir(path): continue
|
if not os.path.isdir(path):
|
||||||
|
continue
|
||||||
device = os.path.basename(path)
|
device = os.path.basename(path)
|
||||||
interfaces[device] = { 'device': device }
|
interfaces[device] = { 'device': device }
|
||||||
if os.path.exists(os.path.join(path, 'address')):
|
if os.path.exists(os.path.join(path, 'address')):
|
||||||
|
|||||||
Reference in New Issue
Block a user