From 01936cb77bea63de87b8a772ac8f55c641f32f38 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 00fffc3..56c3348 100644 --- a/pkg/collect.go +++ b/pkg/collect.go @@ -127,6 +127,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]),