@wrap_check_policy
def get_volume_metadata(self, context, volume):
    'Get all metadata associated with a volume.'
    rv = self.db.volume_metadata_get(context, volume['id'])
    return dict(rv.iteritems())
Get all metadata associated with a volume.
@wrap_check_policy
def get_volume_metadata(self, context, volume):
    
    rv = self.db.volume_metadata_get(context, volume['id'])
    return dict(rv.iteritems())