diff options
author | Martin Basti <mbasti@redhat.com> | 2015-03-17 17:56:34 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2015-04-14 19:25:47 +0200 |
commit | cc19b5a76a37d1fb87deb45d9cbfc71472a99fa4 (patch) | |
tree | 1dbecc1e9cb5b4bf972996fc45a2738f9942863d /ipaserver/install/plugins/update_services.py | |
parent | b4ca5c57d230c80ecc4f8eaaa01d8e7a36bcb3b4 (diff) | |
download | freeipa-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_services.py')
-rw-r--r-- | ipaserver/install/plugins/update_services.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ipaserver/install/plugins/update_services.py b/ipaserver/install/plugins/update_services.py index 2122abb10..1de856885 100644 --- a/ipaserver/install/plugins/update_services.py +++ b/ipaserver/install/plugins/update_services.py @@ -51,16 +51,16 @@ class update_service_principalalias(PostUpdate): except errors.NotFound: root_logger.debug("update_service_principalalias: no service " "to update found") - return (False, False, []) + return False, [] except errors.ExecutionError, e: root_logger.error("update_service_principalalias: cannot " "retrieve list of affected services: %s", e) - return (False, False, []) + return False, [] if not entries: # no entry was returned, rather break than continue cycling root_logger.debug("update_service_principalalias: no service " "was returned") - return (False, False, []) + return False, [] root_logger.debug("update_service_principalalias: found %d " "services to update, truncated: %s", len(entries), truncated) @@ -83,12 +83,12 @@ class update_service_principalalias(PostUpdate): # exit loop to avoid infinite cycles root_logger.error("update_service_principalalias: error(s)" "detected during service update") - return (False, False, []) + return False, [] elif not truncated: # all affected entries updated, exit the loop root_logger.debug("update_service_principalalias: all affected" " services updated") - return (False, False, []) - return (False, False, []) + return False, [] + return False, [] api.register(update_service_principalalias) |