def from_bool(value):
    '''
    Convert zfs bool to python bool
    '''
    if value in ['on', 'yes']:
        value = True
    elif value in ['off', 'no']:
        value = False
    elif value == 'none':
        value = None

    return value
def from_bool ( value ) : if value in [ 'on' , 'yes' ] : value = True elif value in [ 'off' , 'no' ] : value = False elif value == 'none' : value = None return value
Convert zfs bool to python bool