nic-6443 commented on code in PR #13122:
URL: https://github.com/apache/apisix/pull/13122#discussion_r3043592840


##########
apisix/admin/global_rules.lua:
##########
@@ -24,13 +24,23 @@ local ipairs   = ipairs
 local tostring = tostring
 
 local function get_global_rules()
+    local local_conf = core.config.local_conf()
+    if local_conf.deployment.config_provider == "yaml" then

Review Comment:
   The judgment of `deployment.config_provider == "yaml"` is not comprehensive, 
as its value can also be json. We can encapsulate a function to determine 
whether the current `config_provider` is `local`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to