59e08fb16f
Previously it was using functools.wraps() to create the decorators.
The problem is that we can't use the
oslo_utils.reflection.get_signature() function to get the correct
signature.
Change it to use six.wraps() which will add the '__wrapped__'
attribute which will be used when calling get_signature() and return
the signature of the decorated function.
Added unit tests to show we are able to see the signature of a wrapped
function.
Closes-Bug: #1746730
Change-Id: I75428e948b64b3b6758d31678a80d158a11c6beb
(cherry picked from commit
|
||
---|---|---|
.. | ||
common | ||
tests | ||
__init__.py | ||
disk_partitioner.py | ||
disk_utils.py | ||
exception.py | ||
metrics.py | ||
metrics_statsd.py | ||
metrics_utils.py | ||
utils.py | ||
version.py |