def _get_tag(volume, tag_name):
    return volume.extra.get("tags", volume.extra.get("metadata"))[tag_name]
Get a "tag" from an EBS or Rackspace volume.
dataset/ETHPy150Open ClusterHQ/flocker/admin/cleanup.py/_get_tag