Re: [PATCH] scripts/qmp/qom-set: Allow setting integer value

2020-10-02 Thread John Snow
On 10/2/20 4:36 PM, Jonatan Palsson wrote: On Fri, Oct 2, 2020 at 10:29 PM John Snow wrote: On 10/2/20 4:19 PM, Jonatan Pålsson wrote: If the value appears to be an integer, parse it as such. This allows the following: qmp/qom-set -s ~/qmp.sock sensor.temperature 2 .. where senso

Re: [PATCH] scripts/qmp/qom-set: Allow setting integer value

2020-10-02 Thread Jonatan Palsson
On Fri, Oct 2, 2020 at 10:29 PM John Snow wrote: > > On 10/2/20 4:19 PM, Jonatan Pålsson wrote: > > If the value appears to be an integer, parse it as such. > > > > This allows the following: > > > > qmp/qom-set -s ~/qmp.sock sensor.temperature 2 > > > > .. where sensor is a tmp105 device

Re: [PATCH] scripts/qmp/qom-set: Allow setting integer value

2020-10-02 Thread John Snow
On 10/2/20 4:19 PM, Jonatan Pålsson wrote: If the value appears to be an integer, parse it as such. This allows the following: qmp/qom-set -s ~/qmp.sock sensor.temperature 2 .. where sensor is a tmp105 device, and temperature is an integer property. Signed-off-by: Jonatan Pålsson --

[PATCH] scripts/qmp/qom-set: Allow setting integer value

2020-10-02 Thread Jonatan Pålsson
If the value appears to be an integer, parse it as such. This allows the following: qmp/qom-set -s ~/qmp.sock sensor.temperature 2 .. where sensor is a tmp105 device, and temperature is an integer property. Signed-off-by: Jonatan Pålsson --- scripts/qmp/qom-set | 5 - 1 file chang