Fixes #4646: Correct UI link for reports with custom name

This commit is contained in:
Jeremy Stretch 2020-05-15 09:13:51 -04:00
parent 8394ff5537
commit ba91b3aa2e
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ v2.8.5 (FUTURE)
* [#3304](https://github.com/netbox-community/netbox/issues/3304) - Fix caching invalidation issue related to device/virtual machine primary IP addresses * [#3304](https://github.com/netbox-community/netbox/issues/3304) - Fix caching invalidation issue related to device/virtual machine primary IP addresses
* [#4644](https://github.com/netbox-community/netbox/issues/4644) - Fix ordering of services table by parent * [#4644](https://github.com/netbox-community/netbox/issues/4644) - Fix ordering of services table by parent
* [#4646](https://github.com/netbox-community/netbox/issues/4646) - Correct UI link for reports with custom name
* [#4647](https://github.com/netbox-community/netbox/issues/4647) - Fix caching invalidation issue related to assigning new IP addresses to interfaces * [#4647](https://github.com/netbox-community/netbox/issues/4647) - Fix caching invalidation issue related to assigning new IP addresses to interfaces
--- ---

View File

@ -92,7 +92,7 @@ class Report(object):
self.active_test = None self.active_test = None
self.failed = False self.failed = False
self.logger = logging.getLogger(f"netbox.reports.{self.module}.{self.name}") self.logger = logging.getLogger(f"netbox.reports.{self.full_name}")
# Compile test methods and initialize results skeleton # Compile test methods and initialize results skeleton
test_methods = [] test_methods = []
@ -120,7 +120,7 @@ class Report(object):
@property @property
def full_name(self): def full_name(self):
return '.'.join([self.module, self.name]) return '.'.join([self.__module__, self.__class__.__name__])
def _log(self, obj, message, level=LOG_DEFAULT): def _log(self, obj, message, level=LOG_DEFAULT):
""" """