mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Client install should handle automount unconfigured on uninstall
ipa-client-automount now returns CLIENT_NOT_CONFIGURED when it is not configured. Handle this in uninstall(). https://pagure.io/freeipa/issue/7396 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Tibor Dudlak <tdudlak@redhat.com>
This commit is contained in:
@@ -3056,7 +3056,8 @@ def uninstall(options):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
run([paths.IPA_CLIENT_AUTOMOUNT, "--uninstall", "--debug"])
|
run([paths.IPA_CLIENT_AUTOMOUNT, "--uninstall", "--debug"])
|
||||||
except Exception as e:
|
except CalledProcessError as e:
|
||||||
|
if e.returncode != CLIENT_NOT_CONFIGURED:
|
||||||
logger.error(
|
logger.error(
|
||||||
"Unconfigured automount client failed: %s", str(e))
|
"Unconfigured automount client failed: %s", str(e))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user