Skip to content

Commit

Permalink
Fix internalize for ReplicationControllerList. items were created
Browse files Browse the repository at this point in the history
in a new var hiding the function-scoped var.
  • Loading branch information
Jeromy Carriere committed Jul 25, 2014
1 parent fbd71c9 commit 9cad657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ func internalize(obj interface{}) (interface{}, error) {
case *v1beta1.ReplicationControllerList:
var items []ReplicationController
if cObj.Items != nil {
items := make([]ReplicationController, len(cObj.Items))
items = make([]ReplicationController, len(cObj.Items))
for ix := range cObj.Items {
rc, err := internalize(cObj.Items[ix])
if err != nil {
Expand Down

0 comments on commit 9cad657

Please sign in to comment.