Made code flake8 friendly

This commit is contained in:
Sergio Oliveira Campos
2020-04-07 16:02:22 -03:00
parent 4ba34077f9
commit 4155f2f3ac
11 changed files with 32 additions and 20 deletions

View File

@@ -655,9 +655,9 @@ def check_parameters(module, state, action,
def extend_emails(email, default_email_domain):
if email is not None:
return [ "%s@%s" % (_email, default_email_domain)
if "@" not in _email else _email
for _email in email]
return ["%s@%s" % (_email, default_email_domain)
if "@" not in _email else _email
for _email in email]
return email