Skip to content

Commit

Permalink
migrate-to-v2: check if autoscaling is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
benwaffle committed Jun 7, 2023
1 parent 6182cf3 commit e093beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/command/migrate_to_v2/machines.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (m *v2PlatformMigrator) prepMachinesToCreate(ctx context.Context) (err erro

func (m *v2PlatformMigrator) prepAutoscaleMachinesToCreate(ctx context.Context) error {
// If the service being migrated doesn't use autoscaling, just return nil
if m.autoscaleConfig == nil {
if m.autoscaleConfig == nil || !m.autoscaleConfig.Enabled {
return nil
}

Expand Down

0 comments on commit e093beb

Please sign in to comment.