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:
Rob Crittenden
2018-05-01 08:56:10 -04:00
parent a0e846f56c
commit a0eaa74234

View File

@@ -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))