From bec79cde6af9f24242ddc18bc7d79fccc030019c Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Fri, 23 Nov 2018 14:18:41 +0800 Subject: [PATCH] host ping catalog add elasticsearch service --- pkg/compute/models/hosts.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/compute/models/hosts.go b/pkg/compute/models/hosts.go index 79028ba701..abdc39a9e1 100644 --- a/pkg/compute/models/hosts.go +++ b/pkg/compute/models/hosts.go @@ -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") }