Skip to content

Commit

Permalink
fix go vet complaining on composite literales
Browse files Browse the repository at this point in the history
Signed-off-by: Nassim 'Nass' Eddequiouaq <eddequiouaq.nassim@gmail.com>
  • Loading branch information
n4ss committed Jun 27, 2018
1 parent d499cf5 commit 093af81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wincred/wincred_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ type Wincred struct{}

// Add adds new credentials to the windows credentials manager.
func (h Wincred) Add(creds *credentials.Credentials) error {
credsLabels := []byte(credentials.CredsLabel)
g := winc.NewGenericCredential(creds.ServerURL)
g.UserName = creds.Username
g.CredentialBlob = []byte(creds.Secret)
g.Persist = winc.PersistLocalMachine
g.Attributes = []winc.CredentialAttribute{{"label", []byte(credentials.CredsLabel)}}
g.Attributes = []winc.CredentialAttribute{{Keyword: "label", Value: credsLabels}}

return g.Write()
}
Expand Down

0 comments on commit 093af81

Please sign in to comment.