summaryrefslogtreecommitdiff
path: root/cmd/podman/parse.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-01-16 16:22:20 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-17 14:49:23 +0000
commitd4e4878ec3e539e47da8c05227c8020d541a7df2 (patch)
tree7ad0a4afac3bacaef08eea169f1b3f2dab876397 /cmd/podman/parse.go
parentf77bd95426694e1287cd6a73a11fb46b56e5a031 (diff)
downloadpodman-d4e4878ec3e539e47da8c05227c8020d541a7df2.tar.gz
podman-d4e4878ec3e539e47da8c05227c8020d541a7df2.tar.bz2
podman-d4e4878ec3e539e47da8c05227c8020d541a7df2.zip
Remove --storage-opt from podman run/create
podman command has storage options as a global option, these should be set there, rather then in the create and run commands. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #234 Approved by: baude
Diffstat (limited to 'cmd/podman/parse.go')
-rw-r--r--cmd/podman/parse.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/cmd/podman/parse.go b/cmd/podman/parse.go
index bb45d08c4..33988a3b6 100644
--- a/cmd/podman/parse.go
+++ b/cmd/podman/parse.go
@@ -696,21 +696,6 @@ func parseSecurityOpts(securityOpts []string) ([]string, error) { //nolint
return securityOpts, nil
}
-// parses storage options per container into a map
-// for storage-opt flag
-func parseStorageOpts(storageOpts []string) (map[string]string, error) { //nolint
- m := make(map[string]string)
- for _, option := range storageOpts {
- if strings.Contains(option, "=") {
- opt := strings.SplitN(option, "=", 2)
- m[opt[0]] = opt[1]
- } else {
- return nil, errors.Errorf("invalid storage option %q", option)
- }
- }
- return m, nil
-}
-
// convertKVStringsToMap converts ["key=value"] to {"key":"value"}
func convertKVStringsToMap(values []string) map[string]string {
result := make(map[string]string, len(values))