Skip to content

Commit

Permalink
Fix indentaion and prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhattacharyaNS1 committed Aug 26, 2021
1 parent 876daa0 commit c303d6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/lookup/aws_service_ip_ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit c303d6b

Please sign in to comment.