From dad01a1b8afea56b7db1c3b37fb751f079bfda06 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 20 Oct 2016 22:41:04 -0700 Subject: [PATCH] schema/manifest_backwards_compatibility_test: Fix conversion direction We want to go from the Docker type (the key) to the OCI type (the value), not the other way around. Signed-off-by: W. Trevor King --- schema/manifest_backwards_compatibility_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/manifest_backwards_compatibility_test.go b/schema/manifest_backwards_compatibility_test.go index 4bd055cbf..3cf43ce63 100644 --- a/schema/manifest_backwards_compatibility_test.go +++ b/schema/manifest_backwards_compatibility_test.go @@ -38,7 +38,7 @@ var compatMap = map[string]string{ func convertFormats(input string) string { out := input for k, v := range compatMap { - out = strings.Replace(out, v, k, -1) + out = strings.Replace(out, k, v, -1) } return out }