mirror of https://github.com/containers/podman.git
The `Exists` field of the `RemoteSocket` struct is marshaled to json with the `omitempty` setting. This has the disadvantage that by default `podman info` shows a `remotePath` entry (the remote path is set in `pkg/domain/infra/abi/systems.go`: `(*ContainerEngine).Info`) but not that this path does not exist: ``` ❯ podman info --format json | jq .host.remoteSocket { "path": "/run/user/1000/podman/podman.sock" } ``` By removing the `omitempty`, we ensure that the existence is always shown: ``` ❯ bin/podman info --format json | jq .host.remoteSocket { "path": "/run/user/1000/podman/podman.sock", "exists": false } ``` Signed-off-by: Dan Čermák <dcermak@suse.com> |
||
---|---|---|
.. | ||
annotations.go | ||
autoupdate.go | ||
checkpoint_restore.go | ||
config.go | ||
container.go | ||
container_inspect.go | ||
containerstate.go | ||
diff.go | ||
errors.go | ||
exec_codes.go | ||
exit_code_propagation.go | ||
fileinfo.go | ||
healthchecks.go | ||
info.go | ||
mount.go | ||
mount_freebsd.go | ||
mount_linux.go | ||
mount_unsupported.go | ||
pod_inspect.go | ||
podstate.go | ||
runtime.go | ||
sdnotify.go | ||
version.go | ||
volume_inspect.go |