Skip to content

Commit

Permalink
Merge pull request kubernetes#18918 from smarterclayton/conversion_im…
Browse files Browse the repository at this point in the history
…port

Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Dec 22, 2015
2 parents e108a32 + 1737180 commit 390e917
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/runtime/conversion_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ func (g *conversionGenerator) generateConversionsForMap(inType, outType reflect.
func (g *conversionGenerator) generateConversionsForSlice(inType, outType reflect.Type) error {
inElem := inType.Elem()
outElem := outType.Elem()
// slice conversion requires the package for the destination type in order to instantiate the map
g.addImportByPath(outElem.PkgPath())
if err := g.generateConversionsBetween(inElem, outElem); err != nil {
return err
}
Expand Down

0 comments on commit 390e917

Please sign in to comment.