[node-patches] Change in ovirt-node[master]: split proxy server:port for rhn conf
jboggs at redhat.com
jboggs at redhat.com
Tue Aug 28 01:52:29 UTC 2012
Joey Boggs has uploaded a new change for review.
Change subject: split proxy server:port for rhn conf
......................................................................
split proxy server:port for rhn conf
rhbz#837808
Change-Id: Id826af6b75f6348254e6b4910351ae8fb625d38f
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M scripts/rhn.py
1 file changed, 6 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/19/7519/1
diff --git a/scripts/rhn.py b/scripts/rhn.py
index 1022ac1..35257c8 100755
--- a/scripts/rhn.py
+++ b/scripts/rhn.py
@@ -495,9 +495,12 @@
self.rhn_url.set("https://" + self.rv("hostname"))
if os.path.exists("/etc/rhsm/ca/candlepin-local.pem"):
self.rhn_ca.set("/etc/rhsm/ca/candlepin-local.pem")
- self.proxyhost.set(self.rv("httpProxy"))
- self.proxyuser.set(self.rv("proxyUser"))
- self.proxypass.set(self.rv("proxyPassword"))
+ try:
+ p_server, p_port = self.rv("httpProxy").split(":")
+ self.proxyhost.set(p_server)
+ self.proxyport.set(p_port)
+ except:
+ pass
self.rhn_actkey = Entry(40, "")
if rhn_check():
if self.rhn_url.value() == ("https://xmlrpc.rhn.redhat.com/XMLRPC"
--
To view, visit http://gerrit.ovirt.org/7519
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id826af6b75f6348254e6b4910351ae8fb625d38f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>
More information about the node-patches
mailing list