[Bug fix] Arguments are not passed correctly to the method, causing gce driver to return an error when setting metadata into a GCE project.
Error:
ValueError: Unsupported metadata format.
Solution:
Removed unnecessary "self" argument to ex_set_common_instance_metadata and included force argument, which was currently missing.
@@ -899,7 +899,7 @@ class GCEProject(UuidMixin):
:return: True if successful
:rtype: ``bool``
"""
- return self.driver.ex_set_common_instance_metadata(self, metadata)
+ return self.driver.ex_set_common_instance_metadata(metadata, force)
def set_usage_export_bucket(self, bucket, prefix=None):
"""
