From 7e3e8a01ce2c0a2251c4f05d12b1cfdda71b26a0 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Tue, 16 Oct 2018 09:13:52 +0000 Subject: [PATCH] dns: fix compilation error # yunion.io/x/onecloud/pkg/dns pkg/dns/dns.go:237:44: cannot use "" (type string) as type mcclient.IIdentityProvider in argument to models.HostManager.SEnabledStatusStandaloneResourceBaseManager.SStatusStandaloneResourceBaseManager.SStandaloneResourceBaseManager.FetchByName: string does not implement mcclient.IIdentityProvider (missing GetProjectId method) --- pkg/dns/dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dns/dns.go b/pkg/dns/dns.go index 248504b9f6..a2581e5d24 100644 --- a/pkg/dns/dns.go +++ b/pkg/dns/dns.go @@ -234,7 +234,7 @@ func (r *SRegionDNS) Records(state request.Request, exact bool) ([]msg.Service, func (r *SRegionDNS) getHostIpWithName(req *recordRequest) string { name := req.QueryName() - host, _ := models.HostManager.FetchByName("", name) + host, _ := models.HostManager.FetchByName(nil, name) if host == nil { return "" }