ironic-lib/ironic_lib
John L. Villalovos cdea1086d6 Use six.wraps() for Metrics so decorated methods can be inspected
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
2018-02-01 08:47:01 -08:00
..
common Remove translation of log messages 2017-03-21 12:12:56 -07:00
tests Use six.wraps() for Metrics so decorated methods can be inspected 2018-02-01 08:47:01 -08:00
__init__.py Initial commit for ironic-lib 2015-02-26 04:15:08 -08:00
disk_partitioner.py Add wait_for_disk to destroy_disk_metadata function 2018-01-17 08:45:36 -08:00
disk_utils.py Merge "Add wait_for_disk to destroy_disk_metadata function" 2018-01-17 22:09:47 +00:00
exception.py Remove translation of log messages 2017-03-21 12:12:56 -07:00
metrics.py Use six.wraps() for Metrics so decorated methods can be inspected 2018-02-01 08:47:01 -08:00
metrics_statsd.py Remove translation of log messages 2017-03-21 12:12:56 -07:00
metrics_utils.py Add support for metrics 2016-06-28 13:38:01 +01:00
utils.py Simplify logic in wait_for_disk_to_become_available 2018-01-17 13:56:16 -08:00
version.py Add framework for doc building in ironic-lib 2016-08-18 09:14:52 -07:00