summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/plugins/update_passsync.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-03-17 17:56:34 +0100
committerPetr Vobornik <pvoborni@redhat.com>2015-04-14 19:25:47 +0200
commitcc19b5a76a37d1fb87deb45d9cbfc71472a99fa4 (patch)
tree1dbecc1e9cb5b4bf972996fc45a2738f9942863d /ipaserver/install/plugins/update_passsync.py
parentb4ca5c57d230c80ecc4f8eaaa01d8e7a36bcb3b4 (diff)
downloadfreeipa-cc19b5a76a37d1fb87deb45d9cbfc71472a99fa4.tar.gz
freeipa-cc19b5a76a37d1fb87deb45d9cbfc71472a99fa4.tar.xz
freeipa-cc19b5a76a37d1fb87deb45d9cbfc71472a99fa4.zip
Server Upgrade: Apply plugin updates immediately
Preparation to moving plugins executin into update files. * remove apply_now flag * plugins will return only (restart, modifications) https://fedorahosted.org/freeipa/ticket/4904 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/install/plugins/update_passsync.py')
-rw-r--r--ipaserver/install/plugins/update_passsync.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipaserver/install/plugins/update_passsync.py b/ipaserver/install/plugins/update_passsync.py
index e0d2fc01c..61c3a77c5 100644
--- a/ipaserver/install/plugins/update_passsync.py
+++ b/ipaserver/install/plugins/update_passsync.py
@@ -16,7 +16,7 @@ class update_passync_privilege_check(PreUpdate):
update_done = sysupgrade.get_upgrade_state('winsync', 'passsync_privilege_updated')
if update_done:
root_logger.debug("PassSync privilege update pre-check not needed")
- return False, False, []
+ return False, []
root_logger.debug("Check if there is existing PassSync privilege")
@@ -34,7 +34,7 @@ class update_passync_privilege_check(PreUpdate):
root_logger.debug("PassSync privilege found, skip updating PassSync")
sysupgrade.set_upgrade_state('winsync', 'passsync_privilege_updated', True)
- return False, False, []
+ return False, []
api.register(update_passync_privilege_check)
@@ -49,7 +49,7 @@ class update_passync_privilege_update(PostUpdate):
update_done = sysupgrade.get_upgrade_state('winsync', 'passsync_privilege_updated')
if update_done:
root_logger.debug("PassSync privilege update not needed")
- return False, False, []
+ return False, []
root_logger.debug("Add PassSync user as a member of PassSync privilege")
ldap = self.obj.backend
@@ -64,7 +64,7 @@ class update_passync_privilege_update(PostUpdate):
except errors.NotFound:
root_logger.debug("PassSync user not found, no update needed")
sysupgrade.set_upgrade_state('winsync', 'passsync_privilege_updated', True)
- return False, False, []
+ return False, []
else:
root_logger.debug("PassSync user found, do update")
@@ -72,6 +72,6 @@ class update_passync_privilege_update(PostUpdate):
'updates': ["add:member:'%s'" % passsync_dn]}
sysupgrade.set_upgrade_state('winsync', 'passsync_privilege_updated', True)
- return (False, True, [update])
+ return False, [update]
api.register(update_passync_privilege_update)