Skip to content

Commit

Permalink
Remove unwanted logs (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkumatag authored Sep 9, 2022
1 parent ca098cd commit ee9cd5d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions cloud/scope/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ package scope

import (
"context"
"fmt"

"github.com/IBM/go-sdk-core/v5/core"
"github.com/IBM/vpc-go-sdk/vpcv1"
Expand Down Expand Up @@ -154,13 +153,12 @@ func (m *MachineScope) CreateMachine() (*vpcv1.Instance, error) {
}

options.SetInstancePrototype(instancePrototype)
instance, response, err := m.IBMVPCClient.CreateInstance(options)
instance, _, err := m.IBMVPCClient.CreateInstance(options)
if err != nil {
record.Warnf(m.IBMVPCMachine, "FailedCreateInstance", "Failed instance creation - %v", err)
} else {
record.Eventf(m.IBMVPCMachine, "SuccessfulCreateInstance", "Created Instance %q", *instance.Name)
}
fmt.Printf("%v\n", response)
return instance, err
}

Expand Down
1 change: 0 additions & 1 deletion controllers/ibmpowervsmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ func (r *IBMPowerVSMachineReconciler) reconcileNormal(machineScope *scope.PowerV
machineScope.Info("PowerVS instance state is undefined", "state", *instance.Status, "instance-id", machineScope.GetInstanceID())
conditions.MarkUnknown(machineScope.IBMPowerVSMachine, infrav1beta1.InstanceReadyCondition, "", "")
}
machineScope.Info(*ins.PvmInstanceID)
}

// Requeue after 2 minute if machine is not ready to update status of the machine properly.
Expand Down
1 change: 0 additions & 1 deletion controllers/ibmvpcmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ func (r *IBMVPCMachineReconciler) reconcileNormal(machineScope *scope.MachineSco
}
}
machineScope.IBMVPCMachine.Status.Ready = true
machineScope.Info(*instance.ID)
}

return ctrl.Result{}, nil
Expand Down

0 comments on commit ee9cd5d

Please sign in to comment.