Remove creating instance on PersistentPreRun

This commit is contained in:
Maidul Islam
2022-12-25 14:47:46 -05:00
parent 3b6b9d41d1
commit dd7b2dc1ed
2 changed files with 1 additions and 3 deletions

View File

@ -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
}

View File

@ -15,8 +15,6 @@ func GetCurrentVaultBackend() (keyring.BackendType, error) {
}
if configFile.VaultBackendType == "" {
if keyring.AvailableBackends()[0] == keyring.FileBackend {
}
return keyring.AvailableBackends()[0], nil
}