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:
commit
82f16f5a45
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue