1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove invalid variable

This commit is contained in:
npeters 2014-04-24 01:12:55 +02:00
parent 16874464e9
commit 61bb40c0dd

View file

@ -127,6 +127,7 @@ class Ec2Metadata(object):
for (key, value) in data.items():
if ':' in key or '-' in key:
newkey = key.replace(':','_').replace('-','_')
del data[key]
data[newkey] = value
def add_ec2_region(self, data):