mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-04 12:01:02 +02:00
rest_firewall: bug fix of handling an empty dict
Signed-off-by: WATANABE Fumitaka <watanabe.fumitaka@nttcom.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
c737364230
commit
990072dbb2
@ -452,7 +452,7 @@ class FirewallController(ControllerBase):
|
||||
msgs = {}
|
||||
for f_ofs in dps.values():
|
||||
function = getattr(f_ofs, func)
|
||||
msg = function(waiters) if waiters else function()
|
||||
msg = function() if waiters is None else function(waiters)
|
||||
msgs.update(msg)
|
||||
|
||||
body = json.dumps(msgs)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user