mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
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:
+1
-1
@@ -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 ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user