Skip to content

Commit

Permalink
Fixing secondary historian bug (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaliar authored May 9, 2024
1 parent d45131f commit 6ad9aee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/python/phenix_apps/apps/sceptre/sceptre.py
Original file line number Diff line number Diff line change
Expand Up @@ -1407,6 +1407,13 @@ def pre_start(self):
secondary_historian_ips = {"historian": []}

for historian in historians:
historian_ifaces = []
for iface in historian.topology.network.interfaces:
if iface.vlan != "mgmt":
historian_ifaces.append(iface)

iface = historian_ifaces[0]

if historian.metadata:
if "primary" in historian.metadata and historian.metadata.primary:
if historian.metadata.primary not in secondary_historian_ips:
Expand Down

0 comments on commit 6ad9aee

Please sign in to comment.