From a209def5956c85429823c683df7f347f85941385 Mon Sep 17 00:00:00 2001 From: Devon Bautista Date: Wed, 16 Apr 2025 16:32:15 -0600 Subject: [PATCH] fix: adjust secret store precedence in collect command --- pkg/collect.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/collect.go b/pkg/collect.go index b2ebdf6..dd4ff1a 100644 --- a/pkg/collect.go +++ b/pkg/collect.go @@ -134,6 +134,12 @@ func CollectInventory(assets *[]RemoteAsset, params *CollectParams, store secret log.Warn().Str("id", config.URI).Msg("username will be blank") } + // get BMC username to send + bmcCreds, err := bmc.GetBMCCredentials(params.SecretStore, config.URI) + if err != nil { + log.Error().Str("id", config.URI).Msg("username will be blank") + } + // data to be sent to smd data := map[string]any{ "ID": fmt.Sprintf("%v", node.String()[:len(node.String())-2]),