aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2021-05-24 10:52:43 +0100
committerMark Goddard <mark@stackhpc.com>2021-05-25 08:52:19 +0000
commit86ddc94ec2f6ec46d6dfc4feeb58c12aaabcd252 (patch)
treee829c2e8558f9fbd2fd0a8bae540262ef6f050e6 /tools
parentbf1968689b8a5bc35965c1818d7b0750f20607f8 (diff)
downloadkolla-ansible-86ddc94ec2f6ec46d6dfc4feeb58c12aaabcd252.tar.gz
kolla-ansible-86ddc94ec2f6ec46d6dfc4feeb58c12aaabcd252.zip
Fix exit code with bogus command name
Running this: $ kolla-ansible bogus-command Should show usage & give a non-zero exit code. Previously it gave a zero exit code. This change fixes the issue. Closes-Bug: #1929397 Change-Id: I580c208d61d5efe115f936dfb8f3f6508acd91b2
Diffstat (limited to 'tools')
-rwxr-xr-xtools/kolla-ansible2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/kolla-ansible b/tools/kolla-ansible
index 215bcf0ee..a91fc23b3 100755
--- a/tools/kolla-ansible
+++ b/tools/kolla-ansible
@@ -471,7 +471,7 @@ EOF
exit 0
;;
(*) usage
- exit 0
+ exit 3
;;
esac