library/blivet.py
def _get_blivet_volume(blivet_obj, volume, bpool=None):
    """ Return a BlivetVolume instance appropriate for the volume dict. """
    global volume_defaults
    volume_type = volume.get('type', bpool._pool['type'] if bpool else volume_defaults['type'])
    if volume_type not in _BLIVET_VOLUME_TYPES:
        raise BlivetAnsibleError("Volume '%s' has unknown type '%s'" % (volume['name'], volume_type))

    return _BLIVET_VOLUME_TYPES[volume_type](blivet_obj, volume, bpool=bpool)
 Return a BlivetVolume instance appropriate for the volume dict. 
Return a BlivetVolume instance appropriate for the volume dict.
Return a BlivetVolume instance appropriate for the volume dict .
def _get_blivet_volume(blivet_obj, volume, bpool=None):
    global volume_defaults
    volume_type = volume.get('type', bpool._pool['type'] if bpool else volume_defaults['type'])
    if volume_type not in _BLIVET_VOLUME_TYPES:
        raise BlivetAnsibleError("Volume '%s' has unknown type '%s'" % (volume['name'], volume_type))
    return _BLIVET_VOLUME_TYPES[volume_type](blivet_obj, volume, bpool=bpool)
def _get_blivet_volume ( blivet_obj , volume , bpool = None ) : global volume_defaults volume_type = volume . get ( 'type' , bpool . _pool [ 'type' ] if bpool else volume_defaults [ 'type' ] ) if volume_type not in _BLIVET_VOLUME_TYPES : raise BlivetAnsibleError ( "Volume '%s' has unknown type '%s'" % ( volume [ 'name' ] , volume_type ) ) return _BLIVET_VOLUME_TYPES [ volume_type ] ( blivet_obj , volume , bpool = bpool )
Return a BlivetVolume instance appropriate for the volume dict.
Return a BlivetVolume instance appropriate for the volume dict .
""" Return a BlivetVolume instance appropriate for the volume dict. """
blivet_obj
volume
bpool