def _expand_disk(disk):
    ret = {}
    ret.update(disk.__dict__)
    zone = ret['extra']['zone']
    ret['extra']['zone'] = {}
    ret['extra']['zone'].update(zone.__dict__)
    return ret
Convert the libcloud Volume object into something more serializable.
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/gce.py/_expand_disk