Skip to content

Set default values for <obtain_from_environment> with [DEFAULT] section #184

@ddietz89

Description

@ddietz89

If the reconcile fails here

def _reconcile_with_shell_environment_variables(self):

Could we grab a default value from a [DEFAULT] section in the config?

For example:

[DEFAULT]
nodes = 123

[Replacements]
job_name = GFDL_AVEC_c768L127nh
batch_queue = batch
nodes = <obtain_from_environment>
cluster = c6

The DEFAULT section currently works, however, only if the line is completely omitted. If you leave the variable unset, the harness code complains during reconciliation. Some logic could pull the value from the defaults if variable is unset in the environment (possibly continue throwing an error if there are other issues).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions