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

ruamel now requires insertion of new key then deletion #272

Merged
merged 1 commit into from May 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion lsr_role2collection.py
Expand Up @@ -530,8 +530,9 @@ def task_cb(self, task):
logging.debug(f"\ttask role module {role_module_name}")
# assumes task is an orderreddict
idx = tuple(task).index(role_module_name)
val = task.pop(role_module_name)
val = task[role_module_name]
task.insert(idx, self.prefix + role_module_name, val)
del task[role_module_name]

def other_cb(self, item):
"""do something with the other non-task information in an item
Expand Down