summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-10-31 13:28:45 +0100
committerJan Cholasta <jcholast@redhat.com>2016-11-11 12:13:56 +0100
commitc38ce49e8d280e52c61f722b0e5ad7aa9f53cc1a (patch)
tree0d6c93dd84ace788c12a9fcf3687210c0d211406 /client
parentb3786730e50080fa4dadeffa86388592c10b3a62 (diff)
downloadfreeipa-c38ce49e8d280e52c61f722b0e5ad7aa9f53cc1a.tar.gz
freeipa-c38ce49e8d280e52c61f722b0e5ad7aa9f53cc1a.tar.xz
freeipa-c38ce49e8d280e52c61f722b0e5ad7aa9f53cc1a.zip
client: move install part to else branch
https://fedorahosted.org/freeipa/ticket/6392 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'client')
-rwxr-xr-xclient/ipa-client-install10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/ipa-client-install b/client/ipa-client-install
index 96aaf9aeb..ab80bab2d 100755
--- a/client/ipa-client-install
+++ b/client/ipa-client-install
@@ -235,12 +235,12 @@ def main():
return rval_check
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)
- if rval_check != client.SUCCESS:
- return rval_check
-
- return client.install(options)
+ return client.install(options)
if __name__ == "__main__":
try: