You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Populate source field in -unique aggregated output #13
In -unique mode, aggregateUnique collapses all hosts into one synthetic HostComponents and fills placeholder values for datacenter/cluster/hostname, but leaves source empty — so omitempty drops the field and the aggregated output is inconsistent with per-host output (which does carry source).
Fix
Collect the set of distinct source values across all scanned hosts, sort them, and join with ", "
Set that as the source of the aggregated result
Single vCenter -> "vcsa.example.com"; multi-vCenter -> "vc1.example.com, vc2.example.com"
Non-breaking: only populates a field that was previously absent. Also future-proofs the multi-vCenter roadmap (#13/#next).
Acceptance criteria
-unique -json output includes a populated source field
With a single vCenter it shows that host; the value is deterministic (sorted)
Activity