diff options
author | baude <bbaude@redhat.com> | 2019-02-23 19:36:19 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-02-25 09:10:09 -0600 |
commit | 43a1686598c92c9e2a839909b8b5edb9f1b0f00f (patch) | |
tree | e1fb43b63b951dd4f298e93edc868a3dcf2eb371 /cmd/podman/shared | |
parent | 4bf973a9f61eae3b02925a42ccfa784baeb917dc (diff) | |
download | podman-43a1686598c92c9e2a839909b8b5edb9f1b0f00f.tar.gz podman-43a1686598c92c9e2a839909b8b5edb9f1b0f00f.tar.bz2 podman-43a1686598c92c9e2a839909b8b5edb9f1b0f00f.zip |
podman-remote create|ps
enable the podman-remote client to be able to create and list
pods on a remote system.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/shared')
-rw-r--r-- | cmd/podman/shared/pod.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/podman/shared/pod.go b/cmd/podman/shared/pod.go index 30dd14845..5f65c40ac 100644 --- a/cmd/podman/shared/pod.go +++ b/cmd/podman/shared/pod.go @@ -26,6 +26,10 @@ func GetPodStatus(pod *libpod.Pod) (string, error) { if err != nil { return errored, err } + return CreatePodStatusResults(ctrStatuses) +} + +func CreatePodStatusResults(ctrStatuses map[string]libpod.ContainerStatus) (string, error) { ctrNum := len(ctrStatuses) if ctrNum == 0 { return created, nil |