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

pull/39638/merge
Matt Martz 7 years ago committed by GitHub
parent 4c5ac16447
commit d44fd70d02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save