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

add-slurm-setting does not overwrite previous setting #140

Open
dizak opened this issue Jul 23, 2019 · 0 comments
Open

add-slurm-setting does not overwrite previous setting #140

dizak opened this issue Jul 23, 2019 · 0 comments
Labels
bug is something worng?

Comments

@dizak
Copy link
Owner

dizak commented Jul 23, 2019

The add-slurm-setting option should overwrite the previously saved setting. Instead, typing

mothulity --add-slurm-setting "name=phi exclusive partition=accel exclude=gpu[1-8] processors=32"

gives:

Traceback (most recent call last):
  File "/home/mothulity/miniconda3/bin/mothulity", line 835, in <module>
    main()
  File "/home/mothulity/miniconda3/bin/mothulity", line 530, in main
    slurm_config.add_section(section)
  File "/home/mothulity/miniconda3/lib/python3.6/configparser.py", line 1200, in add_section
    super().add_section(section)
  File "/home/mothulity/miniconda3/lib/python3.6/configparser.py", line 659, in add_section
    raise DuplicateSectionError(section)
configparser.DuplicateSectionError: Section 'phi' already exists
@dizak dizak added the bug is something worng? label Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug is something worng?
Projects
None yet
Development

No branches or pull requests

1 participant