mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Assorted pylint fixes
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user