Sensu-go: sensuctl filter create - non user friendly error message

Created on 15 Nov 2018  路  2Comments  路  Source: sensu/sensu-go

When creating a filter, if the filter name is already in use, sensuctl replies with a rather cryptic error message.

Expected Behavior

The client gives a useful and clear error message.

Current Behavior

$ sensuctl filter create my-filter -a deny -s "true"
Error: {"error":"my-filter","code":3}

Steps to Reproduce (for bugs)

Try to create a filter with a name that is already in use:

$ sensuctl filter create my-filter -a deny -s "true"
OK
$ sensuctl filter create my-filter -a deny -s "true"
Error: {"error":"my-filter","code":3}

Your Environment

  • Sensu version:
$ sensuctl version
sensuctl version 2.0.0-beta.8-8#c07579c, build c07579c0b20f5f5e12788fb0704c3a9138882b58, built 2018-11-15T18:16:45+0000
bug

Most helpful comment

This was resolved at some point and is no longer happening! :tada:

All 2 comments

This is still happening:

$ sensuctl filter create my-filter -a deny -s "true"
Error: my-filter

This was resolved at some point and is no longer happening! :tada:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

craigpfeiffer picture craigpfeiffer  路  3Comments

amdprophet picture amdprophet  路  4Comments

adahlmanpinterest picture adahlmanpinterest  路  4Comments

echlebek picture echlebek  路  4Comments

hezor picture hezor  路  4Comments