Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localhost selected from old settings which ought to return a non-local platform #4979

Closed
wxtim opened this issue Jul 12, 2022 · 0 comments · Fixed by #4975
Closed

Localhost selected from old settings which ought to return a non-local platform #4979

wxtim opened this issue Jul 12, 2022 · 0 comments · Fixed by #4975
Assignees
Labels
bug Something is wrong :(
Milestone

Comments

@wxtim
Copy link
Member

wxtim commented Jul 12, 2022

Describe the bug
The following config

# Part of suite.rc[runtime][<namespace>]
    [[remote]]
      host = my_hpcA
    [[job]]
      batch system = pbs

Is expected to select platform my_hpc - but instead selects localhost.

On inspection of the platform code it looks like OrderedDictWithDefaults does not over-ride the get method.

as a result the attempt to use

            task_job_section = task_conf.get("job", {})
            task_remote_section = task_conf.get("remote", {})

To retrieve the task job and task remote sections to be fed to the platform guessing function is returning {}.

Pull requests welcome!
This is an Open Source project - please consider contributing a bug fix
yourself (please read CONTRIBUTING.md before starting any work though).

@wxtim wxtim added the bug Something is wrong :( label Jul 12, 2022
@wxtim wxtim self-assigned this Jul 12, 2022
@wxtim wxtim added this to the cylc-8.0.0 milestone Jul 12, 2022
@wxtim wxtim mentioned this issue Jul 12, 2022
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is wrong :(
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant