From 3998429da6e4a96b1ec667436f1da6b96d0ca33c Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 22 Jul 2016 13:35:54 +0200 Subject: 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(-) (limited to 'base/server/python') diff --git a/base/server/python/pki/server/deployment/pkihelper.py b/base/server/python/pki/server/deployment/pkihelper.py index 54ffe27b7..6ac68b111 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 -- cgit