diff options
Diffstat (limited to '')
-rw-r--r-- | registry/registry.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/registry/registry.go b/registry/registry.go index 7091819..936ff54 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -29,10 +29,10 @@ func NewRegistry(cfg config.Config) *Registry { } // TODO should probably be getprofilebyname -func (r *Registry) LookupByName(name string) *resources.Profile { +func (r *Registry) LookupByName(name string) (map[string]interface{}, error) { fqdn := fmt.Sprintf("acct:%s@%s", name, r.cfg.Domain) if r.LookupResource(fqdn) == nil { - return nil + return nil, nil } return resources.RenderProfile(name, r.cfg.Domain) } |