Skip to content

Commit

Permalink
Merge pull request #99 from CNSRE/hotfix/policy_admin
Browse files Browse the repository at this point in the history
[bugfix] find key by prefix, append ':' into prefix
  • Loading branch information
BG2BKK authored Oct 14, 2018
2 parents 2aed1d4 + 834e8af commit ea987bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/abtesting/adapter/policy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ _M.del = function(self, id)
local database = self.database
local baseLibrary = self.baseLibrary

local policyLib = baseLibrary .. ':' .. id
local policyLib = baseLibrary .. ':' .. id .. ':'

local keys, err = database:keys(policyLib..'*')
if not keys then
Expand Down

0 comments on commit ea987bd

Please sign in to comment.