JBoss-CLI "deploy -l" always returns exit code 1 even when it succeeds
Issue
CLI command deploy -l results always returns 1 even if it succeeded.
For example, it can be seen by following steps:
$ /JBOSS_HOME/bin/jboss-cli.sh -c --command="deploy -l"
NAME RUNTIME-NAME ENABLED STATUS
testapp.war testapp.war true OK
$ echo $?
1
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
