python/ray/autoscaler/_private/aws/cloudwatch/cloudwatch_helper.py
def cloudwatch_config_exists(config, section_name, file_name):
        """check if cloudwatch config file exists"""

        cfg = config.get("cloudwatch", {}).get(section_name, {}).get(file_name)
        if cfg:
            assert os.path.isfile(cfg), \
                "Invalid CloudWatch Config File Path: {}".format(cfg)
        return bool(cfg)
check if cloudwatch config file exists
check if cloudwatch config file exists
check if cloudwatch config file exists
def cloudwatch_config_exists(config, section_name, file_name):
        cfg = config.get("cloudwatch", {}).get(section_name, {}).get(file_name)
        if cfg:
            assert os.path.isfile(cfg), \
                "Invalid CloudWatch Config File Path: {}".format(cfg)
        return bool(cfg)
def cloudwatch_config_exists ( config , section_name , file_name ) : cfg = config . get ( "cloudwatch" , { } ) . get ( section_name , { } ) . get ( file_name ) if cfg : assert os . path . isfile ( cfg ) , "Invalid CloudWatch Config File Path: {}" . format ( cfg ) return bool ( cfg )
check if cloudwatch config file exists
check if cloudwatch config file exists
"""check if cloudwatch config file exists"""
config
section_name
file_name