mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 23:58:23 -05:00
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:
committed by
Jan Cholasta
parent
5249eb817e
commit
847b6eddab
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user