summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2014-09-17 15:22:19 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-09-23 16:25:15 +0200
commitf680a63158d172042c91537a1cb7f6f53766e2ad (patch)
tree51e1d1518172a53e0e4bf82781e84535d9a6719f /ipapython
parentabba25c8269f4928d659cfcaf8363ad2491bd736 (diff)
downloadfreeipa-f680a63158d172042c91537a1cb7f6f53766e2ad.tar.gz
freeipa-f680a63158d172042c91537a1cb7f6f53766e2ad.tar.xz
freeipa-f680a63158d172042c91537a1cb7f6f53766e2ad.zip
Fix certmonger code causing the ca_renewal_master update plugin to fail
https://fedorahosted.org/freeipa/ticket/4547 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/certmonger.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/ipapython/certmonger.py b/ipapython/certmonger.py
index f58b6dafb..85b0e9a79 100644
--- a/ipapython/certmonger.py
+++ b/ipapython/certmonger.py
@@ -166,7 +166,13 @@ def get_request_value(request_id, directive):
root_logger.error('Failed to get request: %s' % e)
raise
if request:
- return request.prop_if.Get(DBUS_CM_REQUEST_IF, directive)
+ if directive == 'ca-name':
+ ca_path = request.obj_if.get_ca()
+ ca = _cm_dbus_object(request.bus, ca_path, DBUS_CM_CA_IF,
+ DBUS_CM_IF)
+ return ca.obj_if.get_nickname()
+ else:
+ return request.prop_if.Get(DBUS_CM_REQUEST_IF, directive)
else:
return None