summaryrefslogtreecommitdiffstats
path: root/base/server/python
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-07-22 13:35:54 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-07-22 19:17:47 +0200
commit3998429da6e4a96b1ec667436f1da6b96d0ca33c (patch)
tree505422760f90e8359890fe677ab7b2ba7b84cf53 /base/server/python
parenteddbcedba312258cd4105f0353313c1423084593 (diff)
downloadpki-3998429da6e4a96b1ec667436f1da6b96d0ca33c.tar.gz
pki-3998429da6e4a96b1ec667436f1da6b96d0ca33c.tar.xz
pki-3998429da6e4a96b1ec667436f1da6b96d0ca33c.zip
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
Diffstat (limited to 'base/server/python')
-rw-r--r--base/server/python/pki/server/deployment/pkihelper.py4
1 files 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 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