Fix E126, E123 pep8 errors, and ansible-format-automatic-specification pylint error (#39740)
This commit is contained in:
parent
4c5ac16447
commit
d44fd70d02
1 changed files with 7 additions and 3 deletions
|
@ -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…
Reference in a new issue