From c303d6bbbf15ea57f1c828d70c05b367f81ffc81 Mon Sep 17 00:00:00 2001 From: Ananda Bhattacharya Date: Wed, 25 Aug 2021 23:45:13 -0700 Subject: [PATCH] Fix indentaion and prefixes --- plugins/lookup/aws_service_ip_ranges.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/lookup/aws_service_ip_ranges.py b/plugins/lookup/aws_service_ip_ranges.py index 230ac76915f..4fb9fe8ebdf 100644 --- a/plugins/lookup/aws_service_ip_ranges.py +++ b/plugins/lookup/aws_service_ip_ranges.py @@ -67,8 +67,8 @@ def valid_cidr(ip_address): """ if NETADDR_LIBRARY_IMPORT_ERROR: raise_from( - AnsibleError('netaddr must be installed to use this plugin'), - NETADDR_LIBRARY_IMPORT_ERROR) + AnsibleError('netaddr must be installed to use this plugin'), + NETADDR_LIBRARY_IMPORT_ERROR) try: netaddr.IPNetwork(ip_address) except netaddr.core.AddrFormatError as e: @@ -81,7 +81,7 @@ def valid_cidr(ip_address): class LookupModule(LookupBase): def run(self, terms, variables, **kwargs): - if "ipv6_prefix" in kwargs and kwargs["ipv6_prefix"]: + if "ipv6_prefixes" in kwargs and kwargs["ipv6_prefixes"]: prefixes_label = "ipv6_prefixes" ip_prefix_label = "ipv6_prefix" else: