Assorted pylint fixes

This commit is contained in:
Dag Wieers 2019-02-14 21:02:27 +01:00 committed by Matt Clay
parent 8e0f95951d
commit f9ab9b4d68
65 changed files with 343 additions and 473 deletions

View file

@ -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):