Hello,

I've got Spacewalk 1.5 on PostgreSQL, and during the replacemento of CA
certificate (https://fedorahosted.org/spacewalk/wiki/ChangeCaCert) command
rhn-ssl-dbstore -vvv --ca-cert /root/ssl-build/RHN-ORG-TRUSTED-SSL-CERT
fails with quite obvious python traceback.

Here's the patch which should solve the problem for PostgreSQL setups.
Sorry, it's not against the git tree, but just the standard install, but
I hope it still can be useful.

Thanks.
- George.

--- 8< --- 8< --- 8< ---

--- /usr/lib/python2.6/site-
packages/spacewalk/satellite_tools/satCerts.py.orig 2011-08-12 
17:02:59.588304610 +0400
+++ /usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satCerts.py      
2011-08-12 17:03:03.496311631 +0400
@@ -420,7 +420,7 @@
         ## NUKE IT!
         if deleteRowYN:
             #print 'found a cert, nuking it! id:', rhn_cryptokey_id
-            h = rhnSQL.prepare('delete rhnCryptoKey where 
id=:rhn_cryptokey_id')
+            h = rhnSQL.prepare('delete from rhnCryptoKey where 
id=:rhn_cryptokey_id')
             h.execute(rhn_cryptokey_id=rhn_cryptokey_id)
             #rhnSQL.commit()
             rhn_cryptokey_id = -1


_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to