You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change limactl list --format json not to include empty objects
Unlike the YAML encoder, the JSON encoder will encode empty structs even when
they have the `json:"omitempty"` tag (it will only emit nil pointers to
structs).
This commit repeatedly removes empty objects until the result no longer
gets any shorter. It doesn't check for the omitempty tag, but we have
that tag set on every struct.
Example: this removes `"vmOpts":{"qemu":{},"vz":{"rosetta":{}}}`.
Signed-off-by: Jan Dubois <[email protected]>
0 commit comments