Skip to content

Commit

Permalink
fix the wrong lister used (cloudnativelabs#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
murali-reddy authored May 4, 2018
1 parent 05b702a commit 09b2f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/netpol/network_policy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ func (npc *NetworkPolicyController) ListPodsByNamespaceAndLabels(namespace strin
}

func (npc *NetworkPolicyController) ListNamespaceByLabels(set labels.Set) ([]*api.Namespace, error) {
namespaceLister := listers.NewNamespaceLister(npc.npLister)
namespaceLister := listers.NewNamespaceLister(npc.nsLister)
matchedNamespaces, err := namespaceLister.List(set.AsSelector())
if err != nil {
return nil, err
Expand Down

0 comments on commit 09b2f13

Please sign in to comment.