You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/06/14 15:28:00 UTC

[jira] [Commented] (BROOKLYN-465) CLI: Cannot set config on entities

    [ https://issues.apache.org/jira/browse/BROOKLYN-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049294#comment-16049294 ] 

ASF GitHub Bot commented on BROOKLYN-465:
-----------------------------------------

Github user Graeme-Miller commented on the issue:

    https://github.com/apache/brooklyn-client/pull/54
  
    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 (https://issues.apache.org/jira/browse/BROOKLYN-465) 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: https://issues.apache.org/jira/browse/BROOKLYN-465
>             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
(v6.4.14#64029)