mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Fixes #13727: Fix exception when viewing rendered config for VM without a role assigned
This commit is contained in:
parent
79bf12a8fe
commit
c7dd4206c8
@ -69,7 +69,7 @@ class RenderConfigMixin(models.Model):
|
|||||||
"""
|
"""
|
||||||
if self.config_template:
|
if self.config_template:
|
||||||
return 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
|
return self.role.config_template
|
||||||
if self.platform and self.platform.config_template:
|
if self.platform and self.platform.config_template:
|
||||||
return self.platform.config_template
|
return self.platform.config_template
|
||||||
|
Loading…
Reference in New Issue
Block a user