Skip to content

Commit 8c68ced

Browse files
committed
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 (cherry picked from commit 86ddc94)
1 parent 05be9a4 commit 8c68ced

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes an issue where ``kolla-ansible`` exits with a zero exit code when
5+
executed with a bogus command name. `LP#1929397
6+
<https://bugs.launchpad.net/kolla-ansible/+bug/1929397>`__

tools/kolla-ansible

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ EOF
494494
exit 0
495495
;;
496496
(*) usage
497-
exit 0
497+
exit 3
498498
;;
499499
esac
500500

0 commit comments

Comments
 (0)