Skip to content

Commit 1e39eb0

Browse files
committed
Merge pull request kubernetes#12488 from pweil-/fix-conversions
use package from out value
2 parents 4593478 + 26d80cd commit 1e39eb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/runtime/conversion_generator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ func (g *conversionGenerator) generateConversionsForMap(inType, outType reflect.
195195
}
196196
inValue := inType.Elem()
197197
outValue := outType.Elem()
198-
g.addImportByPath(inKey.PkgPath())
199-
g.addImportByPath(outKey.PkgPath())
198+
g.addImportByPath(inValue.PkgPath())
199+
g.addImportByPath(outValue.PkgPath())
200200
if err := g.generateConversionsBetween(inValue, outValue); err != nil {
201201
return err
202202
}

0 commit comments

Comments
 (0)