diff options
author | Martin Basti <mbasti@redhat.com> | 2015-03-17 12:23:06 +0100 |
---|---|---|
committer | Tomas Babej <tbabej@redhat.com> | 2015-03-19 12:48:41 +0100 |
commit | c3d441ae0314bd3669a75b3f33d544d9ca09d197 (patch) | |
tree | b7c2e14b54874983f18309338b4f1c3a54290615 /ipaserver/install/plugins | |
parent | 4190b1a47c709f3973913116416b9f5b8168ba28 (diff) | |
download | freeipa-c3d441ae0314bd3669a75b3f33d544d9ca09d197.tar.gz freeipa-c3d441ae0314bd3669a75b3f33d544d9ca09d197.tar.xz freeipa-c3d441ae0314bd3669a75b3f33d544d9ca09d197.zip |
Server Upgrade: remove --test option
As --test option is not used for developing, and it is not recommended
to test if upgrade will pass, this path removes it copmletely.
https://fedorahosted.org/freeipa/ticket/3448
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/install/plugins')
-rw-r--r-- | ipaserver/install/plugins/updateclient.py | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/ipaserver/install/plugins/updateclient.py b/ipaserver/install/plugins/updateclient.py index 85ee3f8a0..824d32b65 100644 --- a/ipaserver/install/plugins/updateclient.py +++ b/ipaserver/install/plugins/updateclient.py @@ -111,21 +111,21 @@ class updateclient(backend.Executioner): ordered.sort(key=lambda p: p.order) return ordered - def update(self, updatetype, dm_password, ldapi, live_run): + def update(self, updatetype, dm_password, ldapi): """ Execute all update plugins of type updatetype. """ self.create_context(dm_password) - kw = dict(live_run=live_run) + kw = dict() result = [] - ld = LDAPUpdate(dm_password=dm_password, sub_dict={}, live_run=live_run, ldapi=ldapi) + ld = LDAPUpdate(dm_password=dm_password, sub_dict={}, ldapi=ldapi) for update in self.order(updatetype): (restart, apply_now, res) = self.run(update.name, **kw) if restart: # connection has to be closed before restart, otherwise # ld instance will try to reuse old non-valid connection ld.close_connection() - self.restart(dm_password, live_run) + self.restart(dm_password) if apply_now: ld.update_from_dict(res) @@ -142,16 +142,13 @@ class updateclient(backend.Executioner): """ return self.Updater[method](**kw) - def restart(self, dm_password, live_run): + def restart(self, dm_password): dsrestart = DSRestart() socket_name = paths.SLAPD_INSTANCE_SOCKET_TEMPLATE % \ api.env.realm.replace('.','-') - if live_run: - self.destroy_context() - dsrestart.create_instance() - wait_for_open_socket(socket_name) - self.create_context(dm_password) - else: - self.log.warn("Test mode, skipping restart") + self.destroy_context() + dsrestart.create_instance() + wait_for_open_socket(socket_name) + self.create_context(dm_password) api.register(updateclient) |