Skip to content

Commit

Permalink
Update platform mapping (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt852 authored Sep 15, 2023
1 parent 47d46f4 commit 8b1ac77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nautobot_golden_config/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 8b1ac77

Please sign in to comment.