Skip to content

Commit

Permalink
ZPS-8945: do not duplicate -addition and -replacement templates in re…
Browse files Browse the repository at this point in the history
…turned list
  • Loading branch information
StevePC committed Jun 14, 2024
1 parent e8b7e98 commit 5b6138a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ZenPacks/zenoss/ZenPackLib/lib/base/DeviceBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def getRRDTemplates(self):
template_name.endswith('-addition'):
# adding here doesn't hurt since we check below, and allows RM
# code to already supply these for us
templates.append(template)
if template not in templates:
templates.append(template)
continue

replacement = self.getRRDTemplateByName(
Expand All @@ -100,7 +101,6 @@ def getRRDTemplates(self):
if addition:
if addition not in templates:
templates.append(addition)
additionName = addition.titleOrId()

return templates

Expand Down

0 comments on commit 5b6138a

Please sign in to comment.