def setMetadata(self, meta, metaId=None): """ Set the meta data hash as the new meta data of the Volume """ if not metaId: metaId = self.getMetadataId() try: self._putMetadata(metaId, meta) except Exception as e: self.log.error(e, exc_info=True) raise se.VolumeMetadataWriteError(str(metaId) + str(e))
def setMetadata(self, meta, metaId=None, **overrides): """ Set the meta data hash as the new meta data of the Volume """ if not metaId: metaId = self.getMetadataId() try: self._putMetadata(metaId, meta, **overrides) except Exception as e: self.log.error(e, exc_info=True) raise se.VolumeMetadataWriteError("%s: %s" % (metaId, e))