client: use correct code for failed uninstall

Hardcoded value 1 means CLIENT_INSTALL_ERROR, but this part belongs to
uninstallation so it should be CLIENT_UNINSTALL_ERROR

https://fedorahosted.org/freeipa/ticket/6392

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Martin Basti
2016-11-11 12:13:56 +01:00
committed by Jan Cholasta
parent 5249eb817e
commit 847b6eddab
+2 -2
View File
@@ -3242,7 +3242,7 @@ def uninstall(options):
root_logger.warning(
"Please remove file '%s' manually.", preferences_fname)
rv = 0
rv = SUCCESS
if fstore.has_files():
root_logger.error('Some files have not been restored, see %s' %
@@ -3254,7 +3254,7 @@ def uninstall(options):
'restored, see /var/lib/ipa/sysrestore/sysrestore.state',
module)
has_state = True
rv = 1
rv = CLIENT_UNINSTALL_ERROR
if has_state:
root_logger.warning(