Automatic merge from release/2.3.0 -> release/2.4.0

* commit 'c67e949e68b27e937e532e2ab907d2814aafb805':
  host ping catalog add elasticsearch service
This commit is contained in:
邱剑
2018-11-23 14:56:17 +08:00
+2 -1
View File
@@ -2331,7 +2331,8 @@ func (self *SHost) PerformPing(ctx context.Context, userCred mcclient.TokenCrede
}
result := jsonutils.NewDict()
result.Set("name", jsonutils.NewString(self.GetName()))
catalog := auth.GetCatalogData([]string{"ntpd", "kafka", "influxdb"}, options.Options.Region)
dependSvcs := []string{"ntpd", "kafka", "influxdb", "elasticsearch"}
catalog := auth.GetCatalogData(dependSvcs, options.Options.Region)
if catalog == nil {
return nil, fmt.Errorf("Get catalog error")
}