@@ -38,12 +38,11 @@ import (
38
38
)
39
39
40
40
type errorWrapper struct {
41
- cluster * machinev1.Cluster
42
41
machine * machinev1.Machine
43
42
}
44
43
45
44
func (e * errorWrapper ) Error (err error , message string ) error {
46
- return fmt .Errorf ("%s/%s : %s: %v" , e . cluster . Name , e .machine .Name , message , err )
45
+ return fmt .Errorf ("%s: %s: %v" , e .machine .Name , message , err )
47
46
}
48
47
49
48
func (e * errorWrapper ) WithLog (err error , message string ) error {
@@ -110,8 +109,8 @@ func (a *Actuator) handleMachineError(machine *machinev1.Machine, err *apierrors
110
109
111
110
// Create creates a machine and is invoked by the Machine Controller
112
111
func (a * Actuator ) Create (context context.Context , cluster * machinev1.Cluster , machine * machinev1.Machine ) error {
113
- glog .Infof ("Creating machine %q for cluster %q. " , machine . Name , cluster .Name )
114
- errWrapper := errorWrapper {cluster : cluster , machine : machine }
112
+ glog .Infof ("Creating machine %q" , machine .Name )
113
+ errWrapper := errorWrapper {machine : machine }
115
114
116
115
machineProviderConfig , err := ProviderConfigMachine (a .codec , & machine .Spec )
117
116
if err != nil {
@@ -150,7 +149,7 @@ func (a *Actuator) Create(context context.Context, cluster *machinev1.Cluster, m
150
149
151
150
// Delete deletes a machine and is invoked by the Machine Controller
152
151
func (a * Actuator ) Delete (context context.Context , cluster * machinev1.Cluster , machine * machinev1.Machine ) error {
153
- glog .Infof ("Deleting machine %q for cluster %q. " , machine . Name , cluster .Name )
152
+ glog .Infof ("Deleting machine %q" , machine .Name )
154
153
155
154
machineProviderConfig , err := ProviderConfigMachine (a .codec , & machine .Spec )
156
155
if err != nil {
@@ -177,8 +176,8 @@ func (a *Actuator) Delete(context context.Context, cluster *machinev1.Cluster, m
177
176
178
177
// Update updates a machine and is invoked by the Machine Controller
179
178
func (a * Actuator ) Update (context context.Context , cluster * machinev1.Cluster , machine * machinev1.Machine ) error {
180
- glog .Infof ("Updating machine %v for cluster %v. " , machine . Name , cluster .Name )
181
- errWrapper := errorWrapper {cluster : cluster , machine : machine }
179
+ glog .Infof ("Updating machine %v" , machine .Name )
180
+ errWrapper := errorWrapper {machine : machine }
182
181
183
182
client , err := a .clientForMachine (a .codec , machine )
184
183
if err != nil {
@@ -203,8 +202,8 @@ func (a *Actuator) Update(context context.Context, cluster *machinev1.Cluster, m
203
202
204
203
// Exists test for the existance of a machine and is invoked by the Machine Controller
205
204
func (a * Actuator ) Exists (context context.Context , cluster * machinev1.Cluster , machine * machinev1.Machine ) (bool , error ) {
206
- glog .Infof ("Checking if machine %v for cluster %v exists." , machine . Name , cluster .Name )
207
- errWrapper := errorWrapper {cluster : cluster , machine : machine }
205
+ glog .Infof ("Checking if machine %v exists." , machine .Name )
206
+ errWrapper := errorWrapper {machine : machine }
208
207
209
208
client , err := a .clientForMachine (a .codec , machine )
210
209
if err != nil {
0 commit comments