commit dc34ed43ddbb425fd4b6eb7eeb721daf7d36e147
Author: Alex Schultz <email address hidden>
Date: Thu Jan 26 16:58:37 2017 -0700
Fix noop metrics timed decorator
Previously if you did not have the monasca statds available, the @timed
decorator would result in a NoneType error because timed was returning
None instead of acting as a noop function wrapper. This change updates
the NoopTimer to properly handle timed being used as a function.
Reviewed: https:/ /review. openstack. org/425982 /git.openstack. org/cgit/ openstack/ designate/ commit/ ?id=dc34ed43ddb b425fd4b6eb7eeb 721daf7d36e147
Committed: https:/
Submitter: Jenkins
Branch: master
commit dc34ed43ddbb425 fd4b6eb7eeb721d af7d36e147
Author: Alex Schultz <email address hidden>
Date: Thu Jan 26 16:58:37 2017 -0700
Fix noop metrics timed decorator
Previously if you did not have the monasca statds available, the @timed
decorator would result in a NoneType error because timed was returning
None instead of acting as a noop function wrapper. This change updates
the NoopTimer to properly handle timed being used as a function.
Change-Id: Ic5543b3503b24a aef960d8b7c0cb3 8940241cbcb
Closes-Bug: #1659638