'Refresh the metadata if new_metadata is None.'

def metadata_update(self, new_metadata=None):

    if (new_metadata is None):
        meta = (self.metadata_get(refresh=True) or {})
        tmpl_meta = self.t.metadata()
        meta.update(tmpl_meta)
        self.metadata_set(meta)
