mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-25 14:05:03 +00:00
Remove creating instance on PersistentPreRun
This commit is contained in:
@ -91,7 +91,7 @@ var loginCmd = &cobra.Command{
|
||||
|
||||
err = util.StoreUserCredsInKeyRing(userCredentialsToBeStored)
|
||||
if err != nil {
|
||||
log.Errorln("Unable to store your credentials in system key ring")
|
||||
log.Errorln("Unable to store your credentials in system key ring. Run with flag -d to see full logs")
|
||||
log.Debugln(err)
|
||||
return
|
||||
}
|
||||
|
@ -15,8 +15,6 @@ func GetCurrentVaultBackend() (keyring.BackendType, error) {
|
||||
}
|
||||
|
||||
if configFile.VaultBackendType == "" {
|
||||
if keyring.AvailableBackends()[0] == keyring.FileBackend {
|
||||
}
|
||||
return keyring.AvailableBackends()[0], nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user