fix: added secrets file path to collect parameters

This commit is contained in:
David Allen 2025-03-19 15:46:53 -06:00
parent ceeaa5d891
commit 053773d90c
Signed by: towk
GPG key ID: 793B2924A49B3A3F

View file

@ -67,6 +67,7 @@ var CollectCmd = &cobra.Command{
OutputPath: outputPath, OutputPath: outputPath,
ForceUpdate: forceUpdate, ForceUpdate: forceUpdate,
AccessToken: accessToken, AccessToken: accessToken,
SecretsFile: secretsFile,
} }
// show all of the 'collect' parameters being set from CLI if verbose // show all of the 'collect' parameters being set from CLI if verbose
@ -81,7 +82,6 @@ var CollectCmd = &cobra.Command{
// Create a StaticSecretStore to hold the username and password // Create a StaticSecretStore to hold the username and password
fmt.Println(err) fmt.Println(err)
store = secrets.NewStaticStore(username, password) store = secrets.NewStaticStore(username, password)
} else {
} }
_, err = magellan.CollectInventory(&scannedResults, params, store) _, err = magellan.CollectInventory(&scannedResults, params, store)