diff options
| author | Abhishek Koneru <akoneru@redhat.com> | 2013-03-07 11:05:31 -0500 |
|---|---|---|
| committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-03-07 17:29:23 -0500 |
| commit | 355cb35feee33a7b98f673a43f3e3bacdf82b44a (patch) | |
| tree | 9c6a5ccd1f88386ba42df222c30a5d4e20e78ae0 /base/deploy/src/scriptlets | |
| parent | 4600fe0e9b7a398146a409328037f2cb26fd1330 (diff) | |
| download | pki-355cb35feee33a7b98f673a43f3e3bacdf82b44a.tar.gz pki-355cb35feee33a7b98f673a43f3e3bacdf82b44a.tar.xz pki-355cb35feee33a7b98f673a43f3e3bacdf82b44a.zip | |
Patch to escape interpolations for parameters having '%' in their values.
Ticket #493 - Changes done to bypass interpolation for using a % as part of a value.
All occurences of % will be replaced by a %% in interactive pkispawn/pkidestroy.
If a file is passed, then the values with a '%' need to have an escape character %
Diffstat (limited to 'base/deploy/src/scriptlets')
| -rw-r--r-- | base/deploy/src/scriptlets/pkiparser.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/deploy/src/scriptlets/pkiparser.py b/base/deploy/src/scriptlets/pkiparser.py index aec125016..0ed366579 100644 --- a/base/deploy/src/scriptlets/pkiparser.py +++ b/base/deploy/src/scriptlets/pkiparser.py @@ -277,6 +277,7 @@ class PKIConfigParser: done = True break + value = value.replace("%", "%%") if section: self.set_property(section, property, value) @@ -301,6 +302,7 @@ class PKIConfigParser: else: print ' ' * self.indent + 'Passwords do not match.' + password = password.replace("%", "%%") if section: self.set_property(section, property, password) |
