Skip to content

Commit

Permalink
fix(core): should_warn checks if kong global has been defined
Browse files Browse the repository at this point in the history
  • Loading branch information
nowNick authored and hanshuebner committed Jun 28, 2024
1 parent df74ecd commit a9d9b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/db/schema/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ function Schema:validate_field(field, value)

if field.deprecation then
local old_default = field.deprecation.old_default
local should_warn = kong.configuration.role ~= "data_plane" and
local should_warn = kong and kong.configuration and kong.configuration.role ~= "data_plane" and
(old_default == nil
or not deepcompare(value, old_default))
if should_warn then
Expand Down

1 comment on commit a9d9b9f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:a9d9b9f5a8fb97b0b913c20128d97b209459dc0b
Artifacts available https://github.com/Kong/kong/actions/runs/9708934599

Please sign in to comment.