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
rpm 'gpgcheck', 'repo_gpgcheck' is expected to be an integer. #677
Comments
Given that a .repo file wants this to be 0 or 1, and the REST API wants 0 or 1, and the database wants 0 or 1, I think making this |
This also applies to --gpgcheck. After a bit of testing I came up with |
@stevebleazard 's solution obviously no longer prints [0|1] in help text (it prints 'INTEGER RANGE' instead), which was quite useful, but it still prints [0<=x<=1], which is the same information, just in a bit uglier format sadly. I'm opening a bugfix, but maybe we may want to do something like a callback that transforms CHOICE to INT, just for the prettier help text. |
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository now require an integer instead of click.choice(0, 1). closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository now require an integer instead of click.choice(0, 1). closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository now require an integer instead of click.choice(0, 1). closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository now require an integer instead of click.choice(0, 1). closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository now require an integer instead of click.choice(0, 1). closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository now require an integer instead of click.choice(0, 1). closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository no longer fail to convert to integer. closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository no longer fail to convert to integer. closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository no longer fail to convert to integer. closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository no longer fail to convert to integer. closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository no longer fail to convert to integer. closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository no longer fail to convert to integer. closes pulp#677
Arguments --gpgcheck and --repo-gpgcheck in creating a rpm repository no longer fail to convert to integer. closes #677
Summary
When running
pulp rpm repository create
orpulp rpm repository update
with--gpgcheck
or--repo-gpgcheck
, I get the error below.Steps to reproduce
Expected behavior
Action to complete successfully.
Stacktrace/Error log
Pulp and pulp-cli version info
pulp-ansible 0.16.1
pulp-cli 0.18.0
pulp-cli-deb 0.0.4
pulp-container 2.14.3
pulp-deb 2.20.1
pulp-file 1.12.0
pulp-glue 0.18.0
pulp-python 3.8.0
pulp-rpm 3.19.1
pulpcore 3.22.3
Additonal context
Setting the click.option for gpgcheck and repo-gpgcheck to type int seems to fix, but I'm not sure that's the right answer.
pulp-cli/pulpcore/cli/rpm/repository.py
Line 134 in 2cc6dc4
The text was updated successfully, but these errors were encountered: