mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +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