Remove invalid variable
This commit is contained in:
parent
98d949e143
commit
43ac7a7984
1 changed files with 1 additions and 0 deletions
|
@ -127,6 +127,7 @@ class Ec2Metadata(object):
|
||||||
for (key, value) in data.items():
|
for (key, value) in data.items():
|
||||||
if ':' in key or '-' in key:
|
if ':' in key or '-' in key:
|
||||||
newkey = key.replace(':','_').replace('-','_')
|
newkey = key.replace(':','_').replace('-','_')
|
||||||
|
del data[key]
|
||||||
data[newkey] = value
|
data[newkey] = value
|
||||||
|
|
||||||
def add_ec2_region(self, data):
|
def add_ec2_region(self, data):
|
||||||
|
|
Loading…
Reference in a new issue