mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Do not initialize API in ipa-client-automount uninstall
API is not needed in uninstallation, it may only produce errors. https://fedorahosted.org/freeipa/ticket/6072 Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
parent
63a91ca49a
commit
2d4d1a9dc0
@ -378,6 +378,9 @@ def main():
|
|||||||
paths.IPACLIENT_INSTALL_LOG, verbose=False, debug=options.debug,
|
paths.IPACLIENT_INSTALL_LOG, verbose=False, debug=options.debug,
|
||||||
filemode='a', console_format='%(message)s')
|
filemode='a', console_format='%(message)s')
|
||||||
|
|
||||||
|
if options.uninstall:
|
||||||
|
return uninstall(fstore, statestore)
|
||||||
|
|
||||||
cfg = dict(
|
cfg = dict(
|
||||||
context='cli_installer',
|
context='cli_installer',
|
||||||
in_server=False,
|
in_server=False,
|
||||||
@ -392,9 +395,6 @@ def main():
|
|||||||
if os.path.exists(paths.IPA_CA_CRT):
|
if os.path.exists(paths.IPA_CA_CRT):
|
||||||
ca_cert_path = paths.IPA_CA_CRT
|
ca_cert_path = paths.IPA_CA_CRT
|
||||||
|
|
||||||
if options.uninstall:
|
|
||||||
return uninstall(fstore, statestore)
|
|
||||||
|
|
||||||
if statestore.has_state('autofs'):
|
if statestore.has_state('autofs'):
|
||||||
sys.exit('automount is already configured on this system.\n')
|
sys.exit('automount is already configured on this system.\n')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user