Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

METRON-2336 Stack advisor provides some components multiple times (santal) #1576

Open
wants to merge 1 commit into
base: feature/METRON-2088-support-hdp-3.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,10 @@ def validateMetronComponentLayout(self, hostsComponentsMap, serviceComponents):
]

# find any metron components that have not been assigned to a host
components = set(component['name'] for componentList in hostsComponentsMap.values() for component in componentList)
unassignedMetronComponents = []
for component in metronComponents:
if (component not in hostsComponentsMap.values()):
if component['name'] not in components:
unassignedMetronComponents.append(component)

if len(unassignedMetronComponents) > 0:
Expand Down