Fix E126, E123 pep8 errors, and ansible-format-automatic-specification pylint error (#39740)

This commit is contained in:
Matt Martz 2018-05-04 09:40:08 -05:00 committed by GitHub
parent 4c5ac16447
commit d44fd70d02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,10 +94,14 @@ from ansible.module_utils.ovirt import (
def _permissions_service(connection, module):
if module.params['user_name']:
service = connection.system_service().users_service()
entity = next(iter(service.list(search='usrname={}'.format(
'{}@{}'.format(module.params['user_name'], module.params['authz_name'])
entity = next(
iter(
service.list(
search='usrname={0}'.format(
'{0}@{1}'.format(module.params['user_name'], module.params['authz_name'])
)
)
)),
),
None
)
else: