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:
Jan Cholasta
2015-12-14 15:15:44 +01:00
committed by Tomas Babej
parent 4272ba40ea
commit 110e3dfc54

View File

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