ocs_ci/framework/main.py
def init_ocsci_conf(arguments=None):
    """
    Update the config object with any files passed via the CLI

    Args:
        arguments (list): Arguments for pytest execution
    """
    if not arguments:
        return
    custom_config = get_param('--ocsci-conf', arguments)
    cluster_config = get_param('--cluster-conf', arguments)
    if custom_config:
        with open(os.path.expanduser(custom_config)) as file_stream:
            custom_config_data = yaml.safe_load(file_stream)
            framework.config.update(custom_config_data)
    if cluster_config:
        with open(os.path.expanduser(cluster_config)) as file_stream:
            cluster_config_data = yaml.safe_load(file_stream)
            framework.config.update(cluster_config_data)
    framework.config.RUN['run_id'] = int(time.time())

    Update the config object with any files passed via the CLI

    Args:
        arguments (list): Arguments for pytest execution
    
Update the config object with any files passed via the CLI
Update the config object with any files passed via the CLI
def init_ocsci_conf(arguments=None):
    if not arguments:
        return
    custom_config = get_param('--ocsci-conf', arguments)
    cluster_config = get_param('--cluster-conf', arguments)
    if custom_config:
        with open(os.path.expanduser(custom_config)) as file_stream:
            custom_config_data = yaml.safe_load(file_stream)
            framework.config.update(custom_config_data)
    if cluster_config:
        with open(os.path.expanduser(cluster_config)) as file_stream:
            cluster_config_data = yaml.safe_load(file_stream)
            framework.config.update(cluster_config_data)
    framework.config.RUN['run_id'] = int(time.time())
def init_ocsci_conf ( arguments = None ) : if not arguments : return custom_config = get_param ( '--ocsci-conf' , arguments ) cluster_config = get_param ( '--cluster-conf' , arguments ) if custom_config : with open ( os . path . expanduser ( custom_config ) ) as file_stream : custom_config_data = yaml . safe_load ( file_stream ) framework . config . update ( custom_config_data ) if cluster_config : with open ( os . path . expanduser ( cluster_config ) ) as file_stream : cluster_config_data = yaml . safe_load ( file_stream ) framework . config . update ( cluster_config_data ) framework . config . RUN [ 'run_id' ] = int ( time . time ( ) )
Update the config object with any files passed via the CLI
Update the config object with any files passed via the CLI
"""
    Update the config object with any files passed via the CLI

    Args:
        arguments (list): Arguments for pytest execution
    """
arguments
Arguments for pytest execution
Arguments for pytest execution