summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNachi Ueno <ueno.nachi@lab.ntt.co.jp>2011-08-19 14:04:58 -0700
committerNachi Ueno <ueno.nachi@lab.ntt.co.jp>2011-08-19 14:04:58 -0700
commit75eb485c3a0e53380b9247d45e2a66159928dcd2 (patch)
tree8762cdc6a8085967c1c60b89929ee735d73443b5
parent46ba1b111bfff27edcb963bc43869f26b02d569a (diff)
Fixed NoneType returned bugw
-rw-r--r--nova/notifier/api.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/notifier/api.py b/nova/notifier/api.py
index ca0ff60a4..99b8b0102 100644
--- a/nova/notifier/api.py
+++ b/nova/notifier/api.py
@@ -48,12 +48,11 @@ def notify_decorator(name, fn):
body['args'].append(arg)
for key in kwarg:
body['kwarg'][key] = kwarg[key]
- LOG.debug("Notify Decorator: %s %r" % (name, body))
notify(FLAGS.host,
name,
DEBUG,
body)
- fn(*args, **kwarg)
+ return fn(*args, **kwarg)
return wrapped_func