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:
watanabe.fumitaka 2013-09-10 11:28:28 +09:00 committed by FUJITA Tomonori
parent c737364230
commit 990072dbb2

View File

@ -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)