diff options
author | baude <bbaude@redhat.com> | 2019-03-07 15:20:29 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-03-11 09:42:22 -0500 |
commit | 651520389d239f335248a27595d39a815ef95238 (patch) | |
tree | 819492990e69d0d5f5b9b276aa789e0d21e31297 /cmd/podman/volume_create.go | |
parent | 9b42577c322b74906d4dfa64926d9f187e2e2976 (diff) | |
download | podman-651520389d239f335248a27595d39a815ef95238.tar.gz podman-651520389d239f335248a27595d39a815ef95238.tar.bz2 podman-651520389d239f335248a27595d39a815ef95238.zip |
preparation for remote-client create container
to prepare for being able to remotely run a container, we need to
perform a refactor to get code out of main because it is not
reusable. the shared location is a good starting spot though
eventually some will likely end up in pkg/spec/ at some point.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/volume_create.go')
-rw-r--r-- | cmd/podman/volume_create.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/volume_create.go b/cmd/podman/volume_create.go index d873f9806..8f6237272 100644 --- a/cmd/podman/volume_create.go +++ b/cmd/podman/volume_create.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/containers/libpod/cmd/podman/cliconfig" + "github.com/containers/libpod/cmd/podman/shared" "github.com/containers/libpod/pkg/adapter" "github.com/pkg/errors" "github.com/spf13/cobra" @@ -50,12 +51,12 @@ func volumeCreateCmd(c *cliconfig.VolumeCreateValues) error { return errors.Errorf("too many arguments, create takes at most 1 argument") } - labels, err := getAllLabels([]string{}, c.Label) + labels, err := shared.GetAllLabels([]string{}, c.Label) if err != nil { return errors.Wrapf(err, "unable to process labels") } - opts, err := getAllLabels([]string{}, c.Opt) + opts, err := shared.GetAllLabels([]string{}, c.Opt) if err != nil { return errors.Wrapf(err, "unable to process options") } |