Merge pull request #1315 from HelenaTian/patch-1

Update gce.py to correctly handle propagated metadata type from a mot…
This commit is contained in:
Brian Coca 2015-07-20 20:00:00 -04:00
commit 82f16f5a45

View file

@ -327,7 +327,7 @@ def create_instances(module, gce, instance_names):
# [ {'key': key1, 'value': value1}, {'key': key2, 'value': value2}, ...]
if metadata:
try:
md = literal_eval(metadata)
md = literal_eval(str(metadata))
if not isinstance(md, dict):
raise ValueError('metadata must be a dict')
except ValueError, e: