diff --git a/lib/migration/migrator_test.go b/lib/migration/migrator_test.go index 6150021d0e..ba59bb745a 100644 --- a/lib/migration/migrator_test.go +++ b/lib/migration/migrator_test.go @@ -36,7 +36,7 @@ func setUp() { // register sample plugin into test log.SetLevel(log.DebugLevel) trace.Logger.Level = log.DebugLevel - version.MaxPluginVersion = 3 + version.MaxPluginVersion = 4 if err := manager.Migrator.Register(version.MaxPluginVersion, manager.ApplianceConfigure, &plugin1.ApplianceStopSignalRename{}); err != nil { log.Errorf("Failed to register plugin %s:%d, %s", manager.ApplianceConfigure, version.MaxPluginVersion, err) diff --git a/lib/migration/plugins/init.go b/lib/migration/plugins/init.go index 607b602ee3..2c6be34364 100644 --- a/lib/migration/plugins/init.go +++ b/lib/migration/plugins/init.go @@ -16,6 +16,6 @@ package plugins // import all plugin packages here to register plugins import ( - _ "github.com/vmware/vic/pkg/version/plugin1" _ "github.com/vmware/vic/pkg/version/plugin2" + _ "github.com/vmware/vic/pkg/version/plugin3" ) \ No newline at end of file diff --git a/pkg/version/version.go b/pkg/version/version.go index a020c1615a..3934c5ea7e 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -31,7 +31,7 @@ var ( State string // MaxPluginVersion must be increased to add new plugin and make sure the new plugin version is same to this value - MaxPluginVersion = 2 + MaxPluginVersion = 3 v bool )