Skip to content

Commit

Permalink
schema/manifest_backwards_compatibility_test: Fix conversion direction
Browse files Browse the repository at this point in the history
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 <wking@tremily.us>
  • Loading branch information
wking committed Oct 21, 2016
1 parent 00f177b commit 801699e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/manifest_backwards_compatibility_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 801699e

Please sign in to comment.