summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/plugins/update_uniqueness.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-05-05 15:12:12 +0200
committerJan Cholasta <jcholast@redhat.com>2015-05-11 16:08:01 +0000
commit520bbd001b68bc51a79c2b4a9684fb1c12a582cd (patch)
tree648060489458b69a3851f2cc509f786fb6b7e990 /ipaserver/install/plugins/update_uniqueness.py
parent5783d0c832a430f0f3b1a9b5ba083cda934d3397 (diff)
downloadfreeipa-520bbd001b68bc51a79c2b4a9684fb1c12a582cd.tar.gz
freeipa-520bbd001b68bc51a79c2b4a9684fb1c12a582cd.tar.xz
freeipa-520bbd001b68bc51a79c2b4a9684fb1c12a582cd.zip
Server Upgrade: Allow base64 encoded values
This patch allows to use base64 encoded values in update files. Double colon ('::') must be used as separator between attribute name and base64 encoded value. add:attr::<base64-value> replace:attr::<old-base64-value>::<new-base64-value> https://fedorahosted.org/freeipa/ticket/4984 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver/install/plugins/update_uniqueness.py')
-rw-r--r--ipaserver/install/plugins/update_uniqueness.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/plugins/update_uniqueness.py b/ipaserver/install/plugins/update_uniqueness.py
index 5475f6799..c162ad3f8 100644
--- a/ipaserver/install/plugins/update_uniqueness.py
+++ b/ipaserver/install/plugins/update_uniqueness.py
@@ -54,11 +54,11 @@ class update_uniqueness_plugins_to_new_syntax(Updater):
plugins_dn = DN(('cn', 'plugins'), ('cn', 'config'))
def __remove_update(self, update, key, value):
- statement = "remove:%s:%s" % (key, value)
+ statement = dict(action='remove', attr=key, value=value)
update.setdefault('updates', []).append(statement)
def __add_update(self, update, key, value):
- statement = "add:%s:%s" % (key, value)
+ statement = dict(action='add', attr=key, value=value)
update.setdefault('updates', []).append(statement)
def __subtree_style(self, entry):