def validate(config):
    '''
    Validate the beacon configuration
    '''
    # Configuration for glxinfo beacon should be a dictionary
    if not isinstance(config, dict):
        return False, ('Configuration for glxinfo beacon must be a dict.')
    if 'user' not in config:
        return False, ('Configuration for glxinfo beacon must '
                       'include a user as glxinfo is not available to root.')
    return True, 'Valid beacon configuration'
dataset/ETHPy150Open saltstack/salt/salt/beacons/glxinfo.py/validate/original