Bug 767283 - Can not use subscription-manager config to set repo_ca_cert
Summary: Can not use subscription-manager config to set repo_ca_cert
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 6.3
Assignee: Adrian Likins
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: 738066
TreeView+ depends on / blocked
 
Reported: 2011-12-13 17:41 UTC by Bryan Kearney
Modified: 2012-03-06 15:58 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-06 15:58:50 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Bryan Kearney 2011-12-13 17:41:29 UTC
this setting has a prefix which includes a % which makes it impossing to do on the command line. Can we have a way to use that setting?

Comment 1 Adrian Likins 2012-01-10 15:40:09 UTC
What kind of problems are you seeing with this?

sudo src/subscription-manager config --rhsm.repo_ca_cert="(ca_cert_dir)sdfgsdfgsfg"

seems to work for me ( value has to be shell quoted, but otherwise
works)

Comment 2 Alex Wood 2012-01-10 16:36:46 UTC
The code works for me so long as you put the argument in single quotes or escape the parenthesis with backslashes.  But you'd have to do that for any argument anywhere with special characters that the shell tries to interpret.

E.g.

[root@rhel6-2 subscription-manager]# PYTHONPATH=../python-rhsm/src/:./src src/subscription-manager config  --rhsm.repo_ca_cert='%(ca_cert_dir)sfoobar.pem'

[root@rhel6-2 subscription-manager]# PYTHONPATH=../python-rhsm/src/:./src src/subscription-manager config  --list | grep repo_ca_cert
   repo_ca_cert = [/etc/rhsm/ca/redhat-uep.pem]
   repo_ca_cert = /etc/rhsm/ca/foobar.pem
   repo_ca_cert = [/etc/rhsm/ca/redhat-uep.pem]


Note You need to log in before you can comment on or make changes to this bug.