client: move install part to else branch

https://fedorahosted.org/freeipa/ticket/6392

Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Martin Basti 2016-10-31 13:28:45 +01:00 committed by Jan Cholasta
parent b3786730e5
commit c38ce49e8d

View File

@ -235,12 +235,12 @@ def main():
return rval_check return rval_check
return client.uninstall(options) return client.uninstall(options)
else:
rval_check = client.install_check(options)
if rval_check != client.SUCCESS:
return rval_check
rval_check = client.install_check(options) return client.install(options)
if rval_check != client.SUCCESS:
return rval_check
return client.install(options)
if __name__ == "__main__": if __name__ == "__main__":
try: try: