-
Notifications
You must be signed in to change notification settings - Fork 42
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
'pulp domain' leads to a stack trace when a default value for --domain is provided in the config file. #769
Labels
bug
Something isn't working (template-set)
Comments
MichalPysik
added
bug
Something isn't working (template-set)
Triage-Needed
Needs to be reviewed at next pulp-cli mtg
labels
Aug 11, 2023
mdellweg
added
invalid
This request doesn't seem right
and removed
bug
Something isn't working (template-set)
Triage-Needed
Needs to be reviewed at next pulp-cli mtg
labels
Aug 11, 2023
$ pulp domains --help
Please use 'domain' instead of 'domains'.
[...] |
|
|
mdellweg
changed the title
'pulp domains' is misleadingly listed as 'pulp domain' in the help text
'pulp domain' leads to a stack trace when a default value for --domain is provided in the config file.
Aug 11, 2023
mdellweg
added
bug
Something isn't working (template-set)
and removed
invalid
This request doesn't seem right
labels
Aug 11, 2023
mdellweg
added a commit
to mdellweg/pulp-cli
that referenced
this issue
Aug 11, 2023
Providing a default value for --domain lead to the domain subcommand group getting an invalid default_map. fixes pulp#769
mdellweg
added a commit
that referenced
this issue
Aug 11, 2023
Providing a default value for --domain lead to the domain subcommand group getting an invalid default_map. fixes #769
3 tasks
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When writing 'pulp' in the cli, 'domain' shows as one of the available commands, butentering 'pulp domain (...)' always leads to a Python traceback.Right way to access pulp domain commands is typing 'pulp domains (...)'.Typing 'pulp domains' shows a valid domain menu, so the problem applies to the top-level help list.edit:
It's a conflict between --domain and domain and the way click handles default_maps for child contexts.
https://click.palletsprojects.com/en/8.1.x/commands/#overriding-defaults: "The default map can be nested arbitrarily for each subcommand:"
Long story short, if you remove the "domain" entry from the config file (that is where the string comes from that it later tries to use as a new default_map), we are fine again.
The text was updated successfully, but these errors were encountered: