Re: [PATCH 2/6] nodeDeviceParseMdevctlJSON: Accept empty string

2023-08-24 Thread Kristina Hanicova
On Thu, Aug 24, 2023 at 10:57 AM Michal Privoznik wrote: > It is possible for 'mdevctl' to output nothing, an empty string > (e.g. when no mediated devices are defined on the host). What is > weird is that when passing '--defined' then 'mdevctl' outputs an > empty JSON array instead.

[PATCH 2/6] nodeDeviceParseMdevctlJSON: Accept empty string

2023-08-24 Thread Michal Privoznik
It is possible for 'mdevctl' to output nothing, an empty string (e.g. when no mediated devices are defined on the host). What is weird is that when passing '--defined' then 'mdevctl' outputs an empty JSON array instead. Nevertheless, we should accept both and threat them the same, i.e. as no