Commit bdd838f8 by Brian Coca

Merge pull request #10625 from discordianfish/patch-1

Replace - in ec2 inventory as well
parents a6778fdf c7f33627
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment