Merge pull request #108 from OpenCHAMI/fix-secrets-cmd

Fix `secrets` command not showing error message
This commit is contained in:
David Allen 2025-07-09 11:01:43 -06:00 committed by GitHub
commit 376dfc6725
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,13 +35,6 @@ var secretsCmd = &cobra.Command{
magellan secrets list -f nodes.json`, magellan secrets list -f nodes.json`,
Short: "Manage credentials for BMC nodes", Short: "Manage credentials for BMC nodes",
Long: "Manage credentials for BMC nodes to for querying information through redfish. This requires generating a key and setting the 'MASTER_KEY' environment variable for the secrets store.", Long: "Manage credentials for BMC nodes to for querying information through redfish. This requires generating a key and setting the 'MASTER_KEY' environment variable for the secrets store.",
Run: func(cmd *cobra.Command, args []string) {
// show command help and exit
if len(args) < 1 {
cmd.Help()
os.Exit(0)
}
},
} }
var secretsGenerateKeyCmd = &cobra.Command{ var secretsGenerateKeyCmd = &cobra.Command{