Skip to content
Permalink
Browse files

fix(storage) fix third party storage module test

  • Loading branch information
fffonion committed Nov 12, 2019
1 parent 9ecba64 commit ef3e1107506bfccc843153766ebcae2eee6f82a2
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/resty/acme/autossl.lua
  2. +1 −1 lib/resty/acme/client.lua
@@ -298,7 +298,7 @@ function AUTOSSL.init(autossl_config, acme_config)
error(err)
end

if not autossl_config.storage_adapter:find("resty.acme.storage.") then
if not autossl_config.storage_adapter:find("%.") then
autossl_config.storage_adapter = "resty.acme.storage." .. autossl_config.storage_adapter
end

@@ -63,7 +63,7 @@ function _M.new(conf)

local storage_adapter = conf.storage_adapter
-- TODO: catch error and return gracefully
if not storage_adapter:find([[\.]]) then
if not storage_adapter:find("%.") then
storage_adapter = "resty.acme.storage." .. storage_adapter
end
local storagemod = require(storage_adapter)

0 comments on commit ef3e110

Please sign in to comment.
You can’t perform that action at this time.