mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
replica promotion: let ipa-client-install validate enrollment options
ipa-client-install output is redirected to standard output, so let it print its own error message for missing options. https://fedorahosted.org/freeipa/ticket/5542 Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
committed by
Tomas Babej
parent
4272ba40ea
commit
110e3dfc54
@@ -812,15 +812,6 @@ def install(installer):
|
||||
def ensure_enrolled(installer):
|
||||
config = installer._config
|
||||
|
||||
# Perform only if we have the necessary options
|
||||
if not any([installer.password,
|
||||
installer.admin_password,
|
||||
installer.keytab]):
|
||||
sys.exit("IPA client is not configured on this system.\n"
|
||||
"You must join the system by running 'ipa-client-install' "
|
||||
"first. Alternatively, you may specify enrollment related "
|
||||
"options directly, see man ipa-replica-install.")
|
||||
|
||||
# Call client install script
|
||||
service.print_msg("Configuring client side components")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user