mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
PEP 8 E111 cleanup for nxos modules.
This commit is contained in:
parent
4a57cba86d
commit
462ab6b1db
61 changed files with 380 additions and 427 deletions
|
@ -120,12 +120,12 @@ except ImportError:
|
|||
|
||||
|
||||
def to_list(val):
|
||||
if isinstance(val, (list, tuple)):
|
||||
return list(val)
|
||||
elif val is not None:
|
||||
return [val]
|
||||
else:
|
||||
return list()
|
||||
if isinstance(val, (list, tuple)):
|
||||
return list(val)
|
||||
elif val is not None:
|
||||
return [val]
|
||||
else:
|
||||
return list()
|
||||
|
||||
|
||||
class CustomNetworkConfig(NetworkConfig):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue