def __space_delimited_list(value):
    '''validate that a value contains one or more space-delimited values'''
    valid, _value, errmsg = False, value, 'space-delimited string'
    try:
        if hasattr(value, '__iter__'):
            valid = True  # TODO:
        else:
            _value = value.split()
            if _value == []:
                raise ValueError
            valid = True
    except __HOLE__:
        pass
    except ValueError:
        pass
    return (valid, _value, errmsg)
dataset/ETHPy150Open saltstack/salt/salt/modules/debian_ip.py/__space_delimited_list