Skip to content

Commit

Permalink
Fixes #13727: Fix exception when viewing rendered config for VM witho…
Browse files Browse the repository at this point in the history
…ut a role assigned
  • Loading branch information
jeremystretch committed Sep 18, 2023
1 parent 79bf12a commit c7dd420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/dcim/models/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_config_template(self):
"""
if self.config_template:
return self.config_template
if self.role.config_template:
if self.role and self.role.config_template:
return self.role.config_template
if self.platform and self.platform.config_template:
return self.platform.config_template

0 comments on commit c7dd420

Please sign in to comment.