Skip to content

Commit

Permalink
Fix ClusterNetwork REST GetAttrs
Browse files Browse the repository at this point in the history
Signed-off-by: Monis Khan <[email protected]>
  • Loading branch information
enj committed Jun 23, 2017
1 parent c3c286b commit 16f8f30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/sdn/registry/clusternetwork/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (

"github.com/openshift/origin/pkg/sdn/api"
"github.com/openshift/origin/pkg/sdn/registry/clusternetwork"
"github.com/openshift/origin/pkg/user/registry/user"
"github.com/openshift/origin/pkg/util/restoptions"
)

Expand All @@ -31,7 +30,7 @@ func NewREST(optsGetter restoptions.Getter) (*REST, error) {
DeleteStrategy: clusternetwork.Strategy,
}

options := &generic.StoreOptions{RESTOptions: optsGetter, AttrFunc: user.GetAttrs}
options := &generic.StoreOptions{RESTOptions: optsGetter, AttrFunc: clusternetwork.GetAttrs}
if err := store.CompleteWithOptions(options); err != nil {
return nil, err
}
Expand Down

0 comments on commit 16f8f30

Please sign in to comment.