Skip to content

Commit 2e5d678

Browse files
Remove unwanted logs (#853)
Co-authored-by: Manjunath A Kumatagi <[email protected]>
1 parent 2b0bf58 commit 2e5d678

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

cloud/scope/machine.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package scope
1818

1919
import (
2020
"context"
21-
"fmt"
2221

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

156155
options.SetInstancePrototype(instancePrototype)
157-
instance, response, err := m.IBMVPCClient.CreateInstance(options)
156+
instance, _, err := m.IBMVPCClient.CreateInstance(options)
158157
if err != nil {
159158
record.Warnf(m.IBMVPCMachine, "FailedCreateInstance", "Failed instance creation - %v", err)
160159
} else {
161160
record.Eventf(m.IBMVPCMachine, "SuccessfulCreateInstance", "Created Instance %q", *instance.Name)
162161
}
163-
fmt.Printf("%v\n", response)
164162
return instance, err
165163
}
166164

controllers/ibmpowervsmachine_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ func (r *IBMPowerVSMachineReconciler) reconcileNormal(machineScope *scope.PowerV
256256
machineScope.Info("PowerVS instance state is undefined", "state", *instance.Status, "instance-id", machineScope.GetInstanceID())
257257
conditions.MarkUnknown(machineScope.IBMPowerVSMachine, infrav1beta1.InstanceReadyCondition, "", "")
258258
}
259-
machineScope.Info(*ins.PvmInstanceID)
260259
}
261260

262261
// Requeue after 2 minute if machine is not ready to update status of the machine properly.

controllers/ibmvpcmachine_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ func (r *IBMVPCMachineReconciler) reconcileNormal(machineScope *scope.MachineSco
196196
}
197197
}
198198
machineScope.IBMVPCMachine.Status.Ready = true
199-
machineScope.Info(*instance.ID)
200199
}
201200

202201
return ctrl.Result{}, nil

0 commit comments

Comments
 (0)