-
Notifications
You must be signed in to change notification settings - Fork 41
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
repo-config option fails to parse #1065
Comments
Can you run in verbose mode? I copy-pasted this and got no errors w/ similar version-set. pulp -vvv rpm repository create --name random --autopublish --repo-config '{"gpgcheck": 0, "repo-gpgcheck": 0}' |
I am not sure why it is failing, but on a system with RH8.10 it worked before. Then i updated to the latest pulp pod image and somewhere after that it started failing. On a similar test system with RH9.4 it works with no problems. I tried it on another machine with 8.10 and it works. this seems a problem specific to one machine.
|
I suspect this is a python3.6 issue Given that i create a venv for python3.6 as follows
|
That's odd. I couldn't reproduce with:
But since changing the client setup solves the issue, that should be moved to pulp-cli. |
Version
"versions": {
"deb": "3.3.1",
"gem": "0.6.1",
"rpm": "3.27.1",
"core": "3.57.1",
"file": "3.57.1",
"maven": "0.8.1",
"ostree": "2.4.3",
"python": "3.12.1",
"ansible": "0.22.1",
"certguard": "3.57.1",
"container": "2.21.0"
}
Describe the bug
pulp rpm repository create --name random --autopublish --repo-config '{"gpgcheck": 0, "repo-gpgcheck": 0}'
Error: Validation failed for 'repositories_rpm_rpm_create':
application/json: 'repo_config' is expected to be a string.
application/x-www-form-urlencoded: 'repo_config' is expected to be a string.
multipart/form-data: 'repo_config' is expected to be a string.
same error goes for rpm publication
To Reproduce
See Above
Expected behavior
--repo-config should be parsed
Additional context
based on example here https://pulpproject.org/pulp_rpm/docs/user/tutorials/create_sync_publish/?h=gpgcheck#create-a-publication-with-a-configrepo
The text was updated successfully, but these errors were encountered: