Upgrade: log to ipaupgrade.log when IPA server is not installed

Message was printed only to stdout and leaves ipaupgrade.log without any
record that ipa-server-upgrade failed because ipa server is not
installed.
Now error is passed to logger which prints meassage to stderr and
ipaupgrade.log.

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
Martin Basti committed 2016-02-11 18:44:14 +01:00
1 parent b3411dc985
commit 0ea7433d09
1 file changed
+1 -1
+1 -1
View File
@@ -1650,7 +1650,7 @@ def upgrade_check(options):
try:
installutils.check_server_configuration()
except RuntimeError as e:
print(unicode(e))
root_logger.error(e)
sys.exit(1)
if not options.skip_version_check: