Replace - in ec2 inventory as well
Dash (-) is not a variable ansible group name, so it needs to be replaced as well.
This commit is contained in:
parent
e82ba723e2
commit
c7f3362795
1 changed files with 1 additions and 1 deletions
|
@ -787,7 +787,7 @@ class Ec2Inventory(object):
|
||||||
''' Converts 'bad' characters in a string to underscores so they can be
|
''' Converts 'bad' characters in a string to underscores so they can be
|
||||||
used as Ansible groups '''
|
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):
|
def json_format_dict(self, data, pretty=False):
|
||||||
|
|
Loading…
Reference in a new issue