summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-15 12:50:48 +0100
committerGitHub <noreply@github.com>2020-02-15 12:50:48 +0100
commit92dbcb8841abae35658e5da1bf6eddee7669ea75 (patch)
treea0544ba444109eb5a8f252c8821828282225d8ad /pkg
parent9e9b157aa925d8d427999389aabf915dcad83355 (diff)
parent36a0ed9702bf4e6ef50650404c838a26f13ba879 (diff)
downloadpodman-92dbcb8841abae35658e5da1bf6eddee7669ea75.tar.gz
podman-92dbcb8841abae35658e5da1bf6eddee7669ea75.tar.bz2
podman-92dbcb8841abae35658e5da1bf6eddee7669ea75.zip
Merge pull request #5217 from mheon/rework_label_parsing
Rework label parsing
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/handlers/libpod/pods.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/pods.go b/pkg/api/handlers/libpod/pods.go
index e9297d91b..d043b1204 100644
--- a/pkg/api/handlers/libpod/pods.go
+++ b/pkg/api/handlers/libpod/pods.go
@@ -42,7 +42,8 @@ func PodCreate(w http.ResponseWriter, r *http.Request) {
}
if len(input.Labels) > 0 {
- if err := parse.ReadKVStrings(labels, []string{}, input.Labels); err != nil {
+ labels, err = parse.GetAllLabels([]string{}, input.Labels)
+ if err != nil {
utils.Error(w, "Something went wrong.", http.StatusInternalServerError, err)
return
}