-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(generate): accept array or object from
podman inspect
output
Podman v5.0.0 and newer always returns an array from `podman inspect`. Older versions of Podman may return a single JSON object if there is only one result, notably for `podman pod inspect`. Created a `serde::de::Visitor` for deserializing the output of `podman inspect` which accepts a map (object) or sequence (array). Tested with both Podman v5.2.2 and v4.9.4 (via quay.io/containers/podman:v4.9.4 image). Fixes: #94 Signed-off-by: Paul Nettleton <k9@k9withabone.dev>
- Loading branch information
1 parent
000daa3
commit f442bd1
Showing
1 changed file
with
52 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters