mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Style fix.
This commit is contained in:
parent
09fc90cca1
commit
6b4f09d7dc
1 changed files with 2 additions and 1 deletions
|
@ -1067,7 +1067,8 @@ class LinuxNetwork(Network):
|
|||
)
|
||||
|
||||
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)
|
||||
interfaces[device] = { 'device': device }
|
||||
if os.path.exists(os.path.join(path, 'address')):
|
||||
|
|
Loading…
Reference in a new issue