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)
This commit is contained in:
Yousong Zhou
2018-10-16 09:13:52 +00:00
parent 1bcfa41427
commit 7e3e8a01ce
+1 -1
View File
@@ -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 ""
}