Skip to content

Commit bcd72f5

Browse files
authored
Merge pull request #99 from jichenjc/fix_log
Fix some nits
2 parents 0629317 + 2a23d0f commit bcd72f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cloud/ibmcloud/actuators/machine/actuator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (ic *IbmCloudClient) Create(ctx context.Context, cluster *clusterv1.Cluster
130130
}
131131

132132
if guest == nil {
133-
return fmt.Errorf("Guest host does not found")
133+
return fmt.Errorf("Guest %s does not exist after created in cluster %s", machine.Name, cluster.Name)
134134
}
135135

136136
return ic.updateAnnotation(machine, strconv.Itoa(*guest.Id))
@@ -204,6 +204,7 @@ func (ic *IbmCloudClient) getIP(machine *clusterv1.Machine) (string, error) {
204204
}
205205
return *guest.PrimaryIpAddress, nil
206206
}
207+
207208
func (ic *IbmCloudClient) updateAnnotation(machine *clusterv1.Machine, id string) error {
208209
if machine.ObjectMeta.Annotations == nil {
209210
machine.ObjectMeta.Annotations = make(map[string]string)

0 commit comments

Comments
 (0)