Skip to content

Commit

Permalink
consistent error message
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Gerber <[email protected]>
  • Loading branch information
bastjan and simu authored Oct 24, 2024
1 parent 64e6ff9 commit bc457eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/machine_api_controllers_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (r *MachineAPIControllersReconciler) Reconcile(ctx context.Context, req ctr

ij, ok := imageCM.Data[imageKey]
if !ok {
return ctrl.Result{}, fmt.Errorf("images.json key not found in ConfigMap %q", imagesConfigMapName)
return ctrl.Result{}, fmt.Errorf("%q key not found in ConfigMap %q", imageKey, imagesConfigMapName)
}
images := make(map[string]string)
if err := json.Unmarshal([]byte(ij), &images); err != nil {
Expand Down

0 comments on commit bc457eb

Please sign in to comment.