mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
refactor: change error message to warning
This commit is contained in:
parent
6c5fc993b0
commit
34af75c1d2
2 changed files with 2 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ var CollectCmd = &cobra.Command{
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Something went wrong with the store so try using
|
// Something went wrong with the store so try using
|
||||||
// Create a StaticSecretStore to hold the username and password
|
// Create a StaticSecretStore to hold the username and password
|
||||||
fmt.Println(err)
|
log.Warn().Err(err).Msg("failed to open local store")
|
||||||
store = secrets.NewStaticStore(username, password)
|
store = secrets.NewStaticStore(username, password)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,7 @@ var secretsStoreCmd = &cobra.Command{
|
||||||
secretValue = args[1]
|
secretValue = args[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// handle input file format
|
||||||
switch secretsStoreFormat {
|
switch secretsStoreFormat {
|
||||||
case "base64":
|
case "base64":
|
||||||
decoded, err := base64.StdEncoding.DecodeString(secretValue)
|
decoded, err := base64.StdEncoding.DecodeString(secretValue)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue