karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Updated] (KARAF-5864) Add triming in system command output in the system collector to allow clean type conversion
Date Fri, 07 Sep 2018 07:39:00 GMT

     [ https://issues.apache.org/jira/browse/KARAF-5864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré updated KARAF-5864:
----------------------------------------
    Description: 
The system collector tries to convert the execution output of a the system command to {{double}}
or {{integer}} and fallback to {{string}} if the conversion fails.
However, the system command output can contains heading or trailing space.

  was:
Now, the system collector executes commands and get the command output as {{String}} in the
EventAdmin event.
It would be great to be able to try scalar type before fallbacking to {{String}} or define
the property type in {{cfg}} file:

{code}
command.foo.long=foo
command.foo.integer=foo
command.foo.string=foo
command.foo=foo // String as today
{code}


> Add triming in system command output in the system collector to allow clean type conversion
> -------------------------------------------------------------------------------------------
>
>                 Key: KARAF-5864
>                 URL: https://issues.apache.org/jira/browse/KARAF-5864
>             Project: Karaf
>          Issue Type: Improvement
>          Components: decanter
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: decanter-2.1.0
>
>
> The system collector tries to convert the execution output of a the system command to
{{double}} or {{integer}} and fallback to {{string}} if the conversion fails.
> However, the system command output can contains heading or trailing space.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message