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 2016-01-27 15:09:32 +01:00
parent b3411dc985
commit 0ea7433d09

View File

@ -1650,7 +1650,7 @@ def upgrade_check(options):
try: try:
installutils.check_server_configuration() installutils.check_server_configuration()
except RuntimeError as e: except RuntimeError as e:
print(unicode(e)) root_logger.error(e)
sys.exit(1) sys.exit(1)
if not options.skip_version_check: if not options.skip_version_check: