mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix substituting dots for underscores when using ips (#15578)
ec2.py was substituting the dots on ip addresses when not using hostnames like: "ec2": [ "10_10_1_1", now it's: "ec2": [ "10.10.1.1",
This commit is contained in:
parent
0f9eaedfa9
commit
3a3e69f830
1 changed files with 2 additions and 2 deletions
|
@ -668,7 +668,7 @@ class Ec2Inventory(object):
|
|||
# If we can't get a nice hostname, use the destination address
|
||||
if not hostname:
|
||||
hostname = dest
|
||||
|
||||
else:
|
||||
hostname = self.to_safe(hostname).lower()
|
||||
|
||||
# if we only want to include hosts that match a pattern, skip those that don't
|
||||
|
|
Loading…
Reference in a new issue