Skip to content

Commit

Permalink
Fix a bug when getting deployments for RS
Browse files Browse the repository at this point in the history
  • Loading branch information
janetkuo committed Feb 19, 2016
1 parent 4d59d70 commit cf2bbc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/cache/listers.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (s *StoreToDeploymentLister) GetDeploymentsForReplicaSet(rs *extensions.Rep
continue
}

selector, err := unversioned.LabelSelectorAsSelector(rs.Spec.Selector)
selector, err := unversioned.LabelSelectorAsSelector(d.Spec.Selector)
if err != nil {
return nil, fmt.Errorf("invalid label selector: %v", err)
}
Expand Down

0 comments on commit cf2bbc0

Please sign in to comment.