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

Xrootd allows for multiple settings for the same option - xrdconfig hides that #10

Open
kreczko opened this issue Apr 17, 2023 · 0 comments

Comments

@kreczko
Copy link
Member

kreczko commented Apr 17, 2023

Example config:

sec.protocol /usr/lib64 gsi
sec.protocol ztn

is a valid config, but xrdconfig will only show the last entry.

To fix this, xrdconfig should collect all settings in a dict of lists:

from collections import defaultdict
result = defaultdict(list)

result[var].append(value)

in the code block starting https://github.com/uobdic/xrdconfig/blob/main/src/xrdconfig/cli.py#L54

The output and diff will need to be modified accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant