You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by to...@apache.org on 2021/05/11 11:02:52 UTC

[apisix] branch master updated: chore: correct typo in the error msg (#4214)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 692ccae  chore: correct typo in the error msg (#4214)
692ccae is described below

commit 692ccae1fdd6338a46ff3ef2069a99084b072cb6
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Tue May 11 19:02:45 2021 +0800

    chore: correct typo in the error msg (#4214)
    
    Signed-off-by: spacewander <sp...@gmail.com>
---
 apisix/admin/global_rules.lua  | 2 +-
 apisix/admin/plugin_config.lua | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/apisix/admin/global_rules.lua b/apisix/admin/global_rules.lua
index d15218f..ff1c3eb 100644
--- a/apisix/admin/global_rules.lua
+++ b/apisix/admin/global_rules.lua
@@ -70,7 +70,7 @@ function _M.put(id, conf)
 
     local key = "/global_rules/" .. id
 
-    local ok, err = utils.inject_conf_with_prev_conf("route", key, conf)
+    local ok, err = utils.inject_conf_with_prev_conf("global_rule", key, conf)
     if not ok then
         return 500, {error_msg = err}
     end
diff --git a/apisix/admin/plugin_config.lua b/apisix/admin/plugin_config.lua
index d1501df..f24a312 100644
--- a/apisix/admin/plugin_config.lua
+++ b/apisix/admin/plugin_config.lua
@@ -68,7 +68,7 @@ function _M.put(id, conf)
 
     local key = "/plugin_configs/" .. id
 
-    local ok, err = utils.inject_conf_with_prev_conf("route", key, conf)
+    local ok, err = utils.inject_conf_with_prev_conf("plugin_config", key, conf)
     if not ok then
         return 500, {error_msg = err}
     end