Skip to content

Commit

Permalink
Switch to pointer.To helper for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Mar 21, 2024
1 parent b948174 commit 93bdbe9
Show file tree
Hide file tree
Showing 19 changed files with 304 additions and 294 deletions.
7 changes: 4 additions & 3 deletions pkg/agent/dozer/bcm/gnmi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
"github.com/openconfig/ygot/ytypes"
"github.com/pkg/errors"
"go.githedgehog.com/fabric/pkg/agent/dozer/bcm/gnmi/oc"
"go.githedgehog.com/fabric/pkg/util/pointer"
)

const (
Expand Down Expand Up @@ -119,10 +120,10 @@ func newAgentUser(ctx context.Context) ([]byte, error) {
user := &oc.OpenconfigSystem_System_Aaa_Authentication_Users{
User: map[string]*oc.OpenconfigSystem_System_Aaa_Authentication_Users_User{
username: {
Username: ygot.String(username),
Username: pointer.To(username),
Config: &oc.OpenconfigSystem_System_Aaa_Authentication_Users_User_Config{
Username: ygot.String(username),
Password: ygot.String(agentPassword),
Username: pointer.To(username),
Password: pointer.To(agentPassword),
Role: oc.UnionString("admin"),
},
},
Expand Down
Loading

0 comments on commit 93bdbe9

Please sign in to comment.