Skip to content

Commit

Permalink
Remove dependency on netcommon collection
Browse files Browse the repository at this point in the history
  • Loading branch information
boutetnico committed Feb 8, 2021
1 parent 736ef68 commit 2532bfe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/modules/ec2_vpc_nacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,8 @@
except ImportError:
pass # Handled by AnsibleAWSModule

from ansible.module_utils._text import to_text
from ansible_collections.amazon.aws.plugins.module_utils.core import AnsibleAWSModule
from ansible_collections.amazon.aws.plugins.module_utils.ec2 import AWSRetry
from ansible_collections.ansible.netcommon.plugins.module_utils.compat.ipaddress import IPv6Network
from ansible_collections.ansible.netcommon.plugins.module_utils.compat.ipaddress import ip_network

# VPC-supported IANA protocol numbers
# http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
Expand Down Expand Up @@ -298,7 +295,7 @@ def rules_changed(aws_rules, param_rules, Egress, nacl_id, client, module):


def is_ipv6(cidr):
return isinstance(ip_network(to_text(cidr)), IPv6Network)
return ':' in cidr


def process_rule_entry(entry, Egress):
Expand Down

0 comments on commit 2532bfe

Please sign in to comment.