Skip to content
Snippets Groups Projects
Commit 81e06369 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Used the type field names here

parent 529e5cef
Branches
Tags
No related merge requests found
...@@ -9,6 +9,7 @@ package ud ...@@ -9,6 +9,7 @@ package ud
import ( import (
"fmt" "fmt"
"github.com/golang/protobuf/proto" "github.com/golang/protobuf/proto"
"github.com/pkg/errors" "github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
...@@ -166,7 +167,9 @@ func parseContacts(grp *cyclic.Group, response []*Contact, ...@@ -166,7 +167,9 @@ func parseContacts(grp *cyclic.Group, response []*Contact,
} }
var facts []fact.Fact var facts []fact.Fact
if c.Username != "" { if c.Username != "" {
facts = []fact.Fact{{c.Username, fact.Username}} facts = []fact.Fact{
{Fact: c.Username, T: fact.Username},
}
} }
// Create new Contact // Create new Contact
contacts[i] = contact.Contact{ contacts[i] = contact.Contact{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment