From a6ca849643b526a84828a885d1bece9e7332097e Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 4 Apr 2017 12:22:47 -0700 Subject: [PATCH] Fix PEP 8 issues. --- lib/ansible/modules/cloud/amazon/ec2_group.py | 3 +-- test/units/modules/web_infrastructure/test_apache2_module.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_group.py b/lib/ansible/modules/cloud/amazon/ec2_group.py index 7441f8c8143..acc5bf118d5 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_group.py +++ b/lib/ansible/modules/cloud/amazon/ec2_group.py @@ -291,8 +291,7 @@ def ports_expand(ports): if not isinstance(port, str): ports_expanded.append((port,) * 2) elif '-' in port: - ports_expanded.append(tuple(p.strip() for p in - port.split('-', 1))) + ports_expanded.append(tuple(p.strip() for p in port.split('-', 1))) else: ports_expanded.append((port.strip(),) * 2) diff --git a/test/units/modules/web_infrastructure/test_apache2_module.py b/test/units/modules/web_infrastructure/test_apache2_module.py index 37da955cf6a..703b35b9dab 100644 --- a/test/units/modules/web_infrastructure/test_apache2_module.py +++ b/test/units/modules/web_infrastructure/test_apache2_module.py @@ -10,6 +10,7 @@ REPLACEMENTS = [ ('thismoduledoesnotexist', 'thismoduledoesnotexist_module'), # the default ] + @pytest.mark.parametrize("replacement", REPLACEMENTS, ids=lambda x: x[0]) def test_apache_identifier(replacement): "test the correct replacement of an a2enmod name with an apache2ctl name"