From 8b1ac77fbf294be85c205ad55c700e79270d3459 Mon Sep 17 00:00:00 2001 From: matt852 Date: Fri, 15 Sep 2023 11:12:39 -0400 Subject: [PATCH] Update platform mapping (#586) --- nautobot_golden_config/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nautobot_golden_config/models.py b/nautobot_golden_config/models.py index 47459001..e10a92e4 100644 --- a/nautobot_golden_config/models.py +++ b/nautobot_golden_config/models.py @@ -138,7 +138,7 @@ def _verify_get_custom_compliance_data(compliance_details): def _get_hierconfig_remediation(obj): """Returns the remediating config.""" - hierconfig_os = HIERCONFIG_LIB_MAPPER_REVERSE.get(obj.device.platform.slug) + hierconfig_os = HIERCONFIG_LIB_MAPPER_REVERSE.get(get_platform(obj.device.platform.slug)) if not hierconfig_os: raise ValidationError(f"platform {obj.device.platform.slug} is not supported by hierconfig.")