def validate_setting(module, setting, param):
    if hasattr(setting, param):
        return True
    else:
        err_msg = "[%s]Error: no %s defined" % (module, param)
        return err_msg
Checks if a Compass setting exists in the config file.
dataset/ETHPy150Open openstack/compass-core/compass/actions/health_check/utils.py/validate_setting