mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Refactors base_pools to pools
This commit is contained in:
parent
7b9b692244
commit
32b4a1cca4
9 changed files with 95 additions and 96 deletions
|
|
@ -7,7 +7,7 @@ package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package
|
|||
require "lua_utils"
|
||||
local json = require "dkjson"
|
||||
local rest_utils = require "rest_utils"
|
||||
local base_pools = require "base_pools"
|
||||
local pools = require "pools"
|
||||
local pools_lua_utils = require "pools_lua_utils"
|
||||
local tracker = require("tracker")
|
||||
|
||||
|
|
@ -186,7 +186,7 @@ function pools_rest_utils.bind_member(pools)
|
|||
end
|
||||
|
||||
if not res then
|
||||
if err == base_pools.ERRORS.ALREADY_BOUND then
|
||||
if err == pools.ERRORS.ALREADY_BOUND then
|
||||
-- Member already existing, return current pool information in the response
|
||||
local cur_pool = s:get_pool_by_member(member)
|
||||
rest_utils.answer(rest_utils.consts.err.bind_pool_member_already_bound, cur_pool)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue