File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ const (
2626
2727// GetNsgNamesFromId returns the names of the NSGs with the provided IDs
2828func GetNsgNamesFromId (ids []string , nsgs []* infrastructurev1beta2.NSG ) []string {
29+ if len (ids ) == 0 {
30+ return nil
31+ }
2932 names := make ([]string , 0 )
3033 for _ , id := range ids {
3134 for _ , nsg := range nsgs {
Original file line number Diff line number Diff line change @@ -357,7 +357,6 @@ func (r *OCIManagedMachinePoolReconciler) reconcileManagedMachines(ctx context.C
357357 specInfraMachines := make ([]infrav2exp.OCIMachinePoolMachine , 0 )
358358 for _ , node := range nodePool .Nodes {
359359 // deleted/failing nodes should not be added to spec
360- machinePoolScope .Info (string (node .LifecycleState ))
361360 if node .LifecycleState == oke .NodeLifecycleStateDeleted || node .LifecycleState == oke .NodeLifecycleStateFailing {
362361 continue
363362 }
You can’t perform that action at this time.
0 commit comments