Commit 038d5248 by Őry Máté

vm: save original function in @node_available

parent 93acd197
......@@ -16,6 +16,7 @@
# with CIRCLE. If not, see <>.
from __future__ import absolute_import, unicode_literals
from functools import update_wrapper
from logging import getLogger
from warnings import warn
import requests
......@@ -51,6 +52,8 @@ def node_available(function):
return function(self, *args, **kwargs)
return None
update_wrapper(decorate, function)
decorate._original = function
return decorate
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment