Rename InfoImporter -> LegacyInfoImporter (#8739)
Avoid namespace clash with the InfoImporter interface that already exists in the v0.41 release series.
This commit is contained in:
@@ -111,7 +111,7 @@ func runMigrateCmd(cmd *cobra.Command, args []string) error {
|
||||
// TypeLocal needs an additional step to ask password.
|
||||
// The other keyring types are handled by ImportInfo.
|
||||
if keyType != keyring.TypeLocal {
|
||||
infoImporter, ok := migrator.(keyring.InfoImporter)
|
||||
infoImporter, ok := migrator.(keyring.LegacyInfoImporter)
|
||||
if !ok {
|
||||
return fmt.Errorf("the Keyring implementation does not support import operations of Info types")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user