[koji PATCH] koji-shadow: convert certificate paths to absolute

Dan HorĂ¡k dan at danny.cz
Sun Jun 1 12:32:25 UTC 2014


Converting the certificate paths to absolute using os.path.expanduser() will
allow using a common shadow config for multiple users.
---
 util/koji-shadow | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/util/koji-shadow b/util/koji-shadow
index 9d0ce67..bdf3ce3 100755
--- a/util/koji-shadow
+++ b/util/koji-shadow
@@ -293,6 +293,12 @@ def ensure_connection(session):
 def activate_session(session):
     """Test and login the session is applicable"""
     global options
+
+    # convert to absolute paths
+    options.auth_cert  = os.path.expanduser(options.auth_cert)
+    options.auth_ca  = os.path.expanduser(options.auth_ca)
+    options.serverca  = os.path.expanduser(options.serverca)
+
     if options.noauth:
         #skip authentication
         pass
-- 
1.9.3



More information about the buildsys mailing list