feat(itim): Dont attempt to apply cluster type config if no type specified.

ref: #247 #71
This commit is contained in:
2024-08-19 16:27:01 +09:30
parent e696129f0b
commit 4ac0c157bc

View File

@ -148,11 +148,13 @@ class Cluster(TenancyObject):
rendered_config: dict = {}
if self.cluster_type.config:
if self.cluster_type:
rendered_config.update(
self.cluster_type.config
)
if self.cluster_type.config:
rendered_config.update(
self.cluster_type.config
)
for service in Service.objects.filter(cluster = self.pk):