From 60df222d6ac06c654fdd88837d5102f620d7deef Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Sat, 11 Sep 2021 07:58:42 +0200 Subject: [PATCH] Apply suggestions from code review --- plugins/lookup/aws_service_ip_ranges.py | 1 + .../targets/lookup_aws_service_ip_ranges/tasks/main.yaml | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/lookup/aws_service_ip_ranges.py b/plugins/lookup/aws_service_ip_ranges.py index 5695de9e5f0..6fe08336f29 100644 --- a/plugins/lookup/aws_service_ip_ranges.py +++ b/plugins/lookup/aws_service_ip_ranges.py @@ -21,6 +21,7 @@ description: 'The AWS region to narrow the ranges to. Examples: us-east-1, eu-west-2, ap-southeast-1' ipv6_prefixes: description: 'Return only ipv6 addresses. Option: ipv6_prefixes=True' + version_added: 2.0.0 ''' EXAMPLES = """ diff --git a/tests/integration/targets/lookup_aws_service_ip_ranges/tasks/main.yaml b/tests/integration/targets/lookup_aws_service_ip_ranges/tasks/main.yaml index 9b4d9fcaeaf..9368735470b 100644 --- a/tests/integration/targets/lookup_aws_service_ip_ranges/tasks/main.yaml +++ b/tests/integration/targets/lookup_aws_service_ip_ranges/tasks/main.yaml @@ -1,5 +1,6 @@ - name: lookup range with no arguments - set_fact: no_params: "{{ lookup('amazon.aws.aws_service_ip_ranges') }}" + set_fact: + no_params: "{{ lookup('amazon.aws.aws_service_ip_ranges') }}" - name: assert that we're returned a single string assert: @@ -76,9 +77,9 @@ set_fact: us_east_1_ips: "{{ lookup('amazon.aws.aws_service_ip_ranges', region='us-east-1', wantlist=True) }}" -- name: lookup IPV6 range with region - set_fact: - us_east_1_ipv6s: "{{ lookup('amazon.aws.aws_service_ip_ranges', region='us-east-1', wantlist=True, ipv6_prefixes=True) }}" + - name: lookup IPV6 range with region + set_fact: + us_east_1_ipv6s: "{{ lookup('amazon.aws.aws_service_ip_ranges', region='us-east-1', wantlist=True, ipv6_prefixes=True) }}" - name: assert that we're returned a list assert: