From 33d39fb98be3048d60624964659cb7b28853ea3d Mon Sep 17 00:00:00 2001 From: Damyan Yordanov Date: Thu, 19 Dec 2024 16:34:43 +0100 Subject: [PATCH] Fix plugin output (#233) Fix C&P logging error when identifying configuration parsing error --- plugins/ipam/plugin.go | 2 +- plugins/oob/plugin.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ipam/plugin.go b/plugins/ipam/plugin.go index ee16839..738f2d3 100644 --- a/plugins/ipam/plugin.go +++ b/plugins/ipam/plugin.go @@ -34,7 +34,7 @@ var ( // args[0] = path to config file func parseArgs(args ...string) (string, error) { if len(args) != 1 { - return "", fmt.Errorf("exactly one argument must be passed to the metal plugin, got %d", len(args)) + return "", fmt.Errorf("exactly one argument must be passed to the ipam plugin, got %d", len(args)) } return args[0], nil } diff --git a/plugins/oob/plugin.go b/plugins/oob/plugin.go index 9694166..1ba86b3 100644 --- a/plugins/oob/plugin.go +++ b/plugins/oob/plugin.go @@ -43,7 +43,7 @@ const ( // args[0] = path to config file func parseArgs(args ...string) (string, error) { if len(args) != 1 { - return "", fmt.Errorf("exactly one argument must be passed to the metal plugin, got %d", len(args)) + return "", fmt.Errorf("exactly one argument must be passed to the oob plugin, got %d", len(args)) } return args[0], nil }