src/orion/core/cli/checks/presence.py
def check_configuration_file(self):
        """Check if configuration file has valid database configuration."""
        config = experiment_builder.get_cmd_config(self.cmdargs)

        if not len(config):
            return "Skipping", "Missing configuration file."

        if "database" not in config.get("storage", {}):
            return "Skipping", "No database found in configuration file."

        config = config["storage"]["database"]
        names = ["type", "name", "host", "port"]

        if not any(name in config for name in names):
            return "Skipping", "No configuration value found inside `database`."

        self.db_config.update(config)

        print("\n   ", config)

        return "Success", ""
Check if configuration file has valid database configuration.
Check if configuration file has valid database configuration.
Check if configuration file has valid database configuration .
def check_configuration_file(self):
        config = experiment_builder.get_cmd_config(self.cmdargs)
        if not len(config):
            return "Skipping", "Missing configuration file."
        if "database" not in config.get("storage", {}):
            return "Skipping", "No database found in configuration file."
        config = config["storage"]["database"]
        names = ["type", "name", "host", "port"]
        if not any(name in config for name in names):
            return "Skipping", "No configuration value found inside `database`."
        self.db_config.update(config)
        print("\n   ", config)
        return "Success", ""
def check_configuration_file ( self ) : config = experiment_builder . get_cmd_config ( self . cmdargs ) if not len ( config ) : return "Skipping" , "Missing configuration file." if "database" not in config . get ( "storage" , { } ) : return "Skipping" , "No database found in configuration file." config = config [ "storage" ] [ "database" ] names = [ "type" , "name" , "host" , "port" ] if not any ( name in config for name in names ) : return "Skipping" , "No configuration value found inside `database`." self . db_config . update ( config ) print ( "\n   " , config ) return "Success" , ""
Check if configuration file has valid database configuration.
Check if configuration file has valid database configuration .
"""Check if configuration file has valid database configuration."""
self