You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ba...@apache.org on 2023/08/07 01:10:42 UTC

[apisix-dashboard] branch master updated: fix: upstream discovery args metadata field caused crash. (#2832)

This is an automated email from the ASF dual-hosted git repository.

baoyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new e8bc9b940 fix: upstream discovery args metadata field caused crash. (#2832)
e8bc9b940 is described below

commit e8bc9b94037a1d71728d4fb1f3c2e615485b69e3
Author: Tsui Jie <jn...@gmail.com>
AuthorDate: Mon Aug 7 09:10:36 2023 +0800

    fix: upstream discovery args metadata field caused crash. (#2832)
---
 api/internal/core/entity/entity.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/internal/core/entity/entity.go b/api/internal/core/entity/entity.go
index b8de0a9e0..c061f4703 100644
--- a/api/internal/core/entity/entity.go
+++ b/api/internal/core/entity/entity.go
@@ -171,7 +171,7 @@ type UpstreamDef struct {
 	Key           string                 `json:"key,omitempty"`
 	Scheme        string                 `json:"scheme,omitempty"`
 	DiscoveryType string                 `json:"discovery_type,omitempty"`
-	DiscoveryArgs map[string]string      `json:"discovery_args,omitempty"`
+	DiscoveryArgs map[string]interface{} `json:"discovery_args,omitempty"`
 	PassHost      string                 `json:"pass_host,omitempty"`
 	UpstreamHost  string                 `json:"upstream_host,omitempty"`
 	Name          string                 `json:"name,omitempty"`