mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-05 07:49:10 -07:00
Assorted pylint fixes
This commit is contained in:
parent
8e0f95951d
commit
f9ab9b4d68
65 changed files with 343 additions and 473 deletions
|
@ -152,7 +152,7 @@ def get_connection(module):
|
|||
elif network_api == 'netconf':
|
||||
module.connection = NetconfConnection(module._socket_path)
|
||||
else:
|
||||
module.fail_json(msg='Invalid connection type {!s}'.format(network_api))
|
||||
module.fail_json(msg='Invalid connection type {0!s}'.format(network_api))
|
||||
|
||||
return module.connection
|
||||
|
||||
|
@ -318,7 +318,7 @@ def etree_findall(root, node):
|
|||
|
||||
def is_cliconf(module):
|
||||
capabilities = get_device_capabilities(module)
|
||||
return True if capabilities.get('network_api') == 'cliconf' else False
|
||||
return (capabilities.get('network_api') == 'cliconf')
|
||||
|
||||
|
||||
def is_netconf(module):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue