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

Remove incorrect OrderedDict references in yaml_generation #791

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/ramble/ramble/util/yaml_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

"""

from collections import OrderedDict
from typing import Dict, Any
import ruamel.yaml as yaml
import spack.util.spack_yaml as syaml
Expand Down Expand Up @@ -131,7 +130,7 @@ def set_config_value(config_data: Dict, option_name: str, option_value: Any, for
if cur_part not in option_scope:
if not force:
return
option_scope[cur_part] = OrderedDict()
option_scope[cur_part] = {}
option_scope = option_scope[cur_part]

set_value = force or option_parts[0] in option_scope
Expand Down Expand Up @@ -159,7 +158,7 @@ def remove_config_value(config_data: Dict, option_name: str):
while len(option_parts) > 1:
cur_part = option_parts.pop(0)
if cur_part not in option_scope:
option_scope[cur_part] = OrderedDict()
return
reverse_stack.append((option_scope, cur_part))
option_scope = option_scope[cur_part]

Expand Down
Loading