diff --git a/cloud/google/gce.py b/cloud/google/gce.py index 314f1200161..be9e6818c76 100644 --- a/cloud/google/gce.py +++ b/cloud/google/gce.py @@ -317,7 +317,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: