summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2015-07-08 12:19:58 +0200
committerJan Cholasta <jcholast@redhat.com>2015-07-08 12:58:50 +0000
commit21b04769b952e4f237f8490cce0f33d76a2decf2 (patch)
tree389a4636dda50ea0c4a694c89b893599b2ee4e0c /ipaserver
parent232458a222435c80c28d6179f164673de67e2544 (diff)
downloadfreeipa-21b04769b952e4f237f8490cce0f33d76a2decf2.tar.gz
freeipa-21b04769b952e4f237f8490cce0f33d76a2decf2.tar.xz
freeipa-21b04769b952e4f237f8490cce0f33d76a2decf2.zip
Upgrade: Do not show upgrade failed message when IPA is not installed
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/ipa_server_upgrade.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipaserver/install/ipa_server_upgrade.py b/ipaserver/install/ipa_server_upgrade.py
index d0a839d0a..2ebdf9185 100644
--- a/ipaserver/install/ipa_server_upgrade.py
+++ b/ipaserver/install/ipa_server_upgrade.py
@@ -50,4 +50,9 @@ class ServerUpgrade(admintool.AdminTool):
raise admintool.ScriptError(str(e))
def handle_error(self, exception):
+ if not isinstance(exception, SystemExit):
+ # do not log this message when ipa is not installed
+ self.log.error("IPA server upgrade failed: Inspect "
+ "/var/log/ipaupgrade.log and run command "
+ "ipa-server-upgrade manually.")
return installutils.handle_error(exception, self.log_file_name)