

@_handle_object_not_found
def get_metadata(self, obj, prefix=None):
    '\n        Returns the metadata for the specified object as a dict.\n        '
    uri = ('/%s/%s' % (self.uri_base, utils.get_name(obj)))
    (resp, resp_body) = self.api.method_head(uri)
    ret = {
        
    }
    if (prefix is None):
        prefix = OBJECT_META_PREFIX
    low_prefix = prefix.lower()
    for (hkey, hval) in list(resp.headers.items()):
        lowkey = hkey.lower()
        if lowkey.startswith(low_prefix):
            cleaned = obj.replace(low_prefix, '').replace('-', '_')
            ret[cleaned] = hval
    return ret

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py StorageObjectManager.get_metadata/VarMisuse@124/179 `hkey`->`obj`