brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (BROOKLYN-465) CLI: Cannot set config on entities
Date Wed, 14 Jun 2017 15:28:00 GMT


ASF GitHub Bot commented on BROOKLYN-465:

Github user Graeme-Miller commented on the issue:
    Actually, maybe all that is needed is some clarity about how to use this in the help documentation
and some better error information.
    I was fixing this because of this Jira (
and I also found using set confusing. 
    How would you both feel about me updating the help documentation for set to say it is
JSON, and to quote strings? I'll also leave in the changes to allow sensors to be set.

> CLI: Cannot set config on entities
> ----------------------------------
>                 Key: BROOKLYN-465
>                 URL:
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Sam Corbett
>            Priority: Minor
> I get an error from the server when trying to set config on an entity:
> {code}
> $ br application rjifivcnbe entity zi1rx7mn42 config akey set "hello"
> JsonParseException: Unrecognized token 'hello': was expecting ('true', 'false' or 'null')
>  at [Source: org.apache.cxf.transport.http.AbstractHTTPDestination$1@171d57a; line: 1,
column: 11]
> {code}
> Replacing "hello" with `true` or `false` sets the config key to the boolean value and
replacing it with `null` nulls the value. Per the exception I'd guess the request is malformed.

This message was sent by Atlassian JIRA

View raw message