Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Influx CLI return code is always zero #5475

Closed
rossmcdonald opened this issue Jan 28, 2016 · 0 comments
Closed

Influx CLI return code is always zero #5475

rossmcdonald opened this issue Jan 28, 2016 · 0 comments

Comments

@rossmcdonald
Copy link
Contributor

InfluxDB version:

InfluxDB v0.10.0.n1453968035 (git: master d771eb72f708c523bb2bec35a97f6bb83ae4ef1d, built 2016-01-28T08:01:46.209415)

Return codes are always zero, regardless of success of command:

vagrant@influx1:~$ influx -execute 'show tag keys' -database 'sample_database'
ERR: write message type: use of closed network connection
vagrant@influx1:~$ echo $?
0
vagrant@influx1:~$ influx -execute 'show tag keys' -database 'banana'
ERR: database not found: banana
vagrant@influx1:~$ echo $?
0
vagrant@influx1:~$ influx -execute 'kazoo' -database 'banana'
ERR: error parsing query: found kazoo, expected SELECT, DELETE, SHOW, CREATE, DROP, GRANT, REVOKE, ALTER, SET at line 1, char 1
vagrant@influx1:~$ echo $?
0

Even when executing incorrect commands, or attempting to access non-existent databases.

@rossmcdonald rossmcdonald changed the title Influx Client return code is always zero Influx client return code is always zero Jan 28, 2016
@desa desa changed the title Influx client return code is always zero Influx CLI return code is always zero Jan 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant