Am 02.06.26 um 3:13 PM schrieb Arthur Bied-Charreton:
> On Tue, Jun 02, 2026 at 02:14:05PM +0200, Fiona Ebner wrote:
>> Am 01.06.26 um 9:16 AM schrieb Arthur Bied-Charreton:
>>> +};
>>>  
>>> -    s/^\s+//;
>>> +my $flags = {};
>>>  
>>> -    push @flags, split(/\s+/);
>>> +<$out>;
>>
>> Nit: Could match the beginning of the line to see that it's the single
>> QMP message we expect. And die if there is anything else for catching
>> any unexpected warnings/messages.
>>
> just to clarify, by beginning of the line you just mean the QMP key in
> the return object right?
> 
> ```
> {"QMP": {"version": {"qemu": {"micro": 0, "minor": 0, "major": 11}, 
> "package": "pve-qemu-kvm_11.0.0-4"}, "capabilities": []}}
> ```

Yes, just that there's a QMP JSON info line, I would even say, the
contents don't matter too much here ^^

> or do you want to fail on new pve-qemu-kvm versions? 

No.



Reply via email to