The string splice operation in substitute_deployment_params() has
been fixed to include the rest of the string.

https://fedorahosted.org/pki/ticket/2399

Pushed under one-liner/trivial rule.

--
Endi S. Dewata
>From 3998429da6e4a96b1ec667436f1da6b96d0ca33c Mon Sep 17 00:00:00 2001
From: "Endi S. Dewata" <[email protected]>
Date: Fri, 22 Jul 2016 13:35:54 +0200
Subject: [PATCH] Fixed param substitution problem.

The string splice operation in substitute_deployment_params() has
been fixed to include the rest of the string.

https://fedorahosted.org/pki/ticket/2399
---
 base/server/python/pki/server/deployment/pkihelper.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/server/python/pki/server/deployment/pkihelper.py b/base/server/python/pki/server/deployment/pkihelper.py
index 54ffe27b75c997f58e4005315ea5d7caa4180db1..6ac68b111da01f021daa899212a883e53a53846d 100644
--- a/base/server/python/pki/server/deployment/pkihelper.py
+++ b/base/server/python/pki/server/deployment/pkihelper.py
@@ -1810,8 +1810,8 @@ class File:
                     line[begin:end + 1], value,
                     extra=config.PKI_INDENTATION_LEVEL_3)
 
-                # replace parameter with value
-                line = line[0:begin] + value + line[end + 1]
+                # replace parameter with value, keep the rest of the line
+                line = line[0:begin] + value + line[end + 1:]
 
                 # calculate the new end position
                 end = begin + len(value) + 1
-- 
2.5.5

_______________________________________________
Pki-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pki-devel

Reply via email to