Closed jirwin closed 10 years ago
+1
root@infra2:~# raxmon-checks-create --type agent.plugin --label something --entity-id enYxHGFP7B --details file=something,args=this
Resource created. ID: chASoY8kR7
root@infra2:~# raxmon-checks-create --type agent.plugin --label something --entity-id enYxHGFP7B --details file=something,args=this,args=that
Resource created. ID: chs3sIZjEP
root@infra2:~#
+1
When creating and updating
agent.plugin
checks, you have to pass theargs
field as an array. #69 fixed things by allowing arrays to be specified, but it doesn't have any way of knowing that args always has to be an array, even if only a single arg is specified. This updates the commands to coerce the field to a list if it isn't one.