mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Merge pull request #10625 from discordianfish/patch-1
Replace - in ec2 inventory as well
This commit is contained in:
@@ -787,7 +787,7 @@ class Ec2Inventory(object):
|
||||
''' Converts 'bad' characters in a string to underscores so they can be
|
||||
used as Ansible groups '''
|
||||
|
||||
return re.sub("[^A-Za-z0-9\-]", "_", word)
|
||||
return re.sub("[^A-Za-z0-9\_]", "_", word)
|
||||
|
||||
|
||||
def json_format_dict(self, data, pretty=False):
|
||||
|
||||
Reference in New Issue
Block a user