URL: https://github.com/freeipa/freeipa/pull/496
Author: stlaz
 Title: #496: Use newer Certificate.serial_number in krainstance.py
Action: opened

PR body:
"""
This bit was missed in https://github.com/freeipa/freeipa/pull/458
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/496/head:pr496
git checkout pr496
From 4b50f00b0f34bf03970a08edcf06c20e2f1cce95 Mon Sep 17 00:00:00 2001
From: Stanislav Laznicka <slazn...@redhat.com>
Date: Wed, 15 Feb 2017 18:10:09 +0100
Subject: [PATCH] Use newer Certificate.serial_number in krainstance.py

---
 ipaserver/install/krainstance.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipaserver/install/krainstance.py b/ipaserver/install/krainstance.py
index ec38801..e2bd22e 100644
--- a/ipaserver/install/krainstance.py
+++ b/ipaserver/install/krainstance.py
@@ -313,7 +313,7 @@ def __create_kra_agent(self):
             usertype=["undefined"],
             userCertificate=[cert_data],
             description=['2;%s;%s;%s' % (
-                cert.serial,
+                cert.serial_number,
                 DN(self.subject),
                 DN(('CN', 'IPA RA'), self.subject_base))])
         conn.add_entry(entry)
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to