def validate(config):
    # Configuration for diskusage beacon should be a list of dicts
    if not isinstance(config, dict):
        return False, ('Configuration for diskusage beacon '
                       'must be a dictionary.')
    return True, 'Valid beacon configuration'
Validate the beacon configuration
dataset/ETHPy150Open saltstack/salt/salt/beacons/diskusage.py/validate