c/shepherd/equinix: fix redundant agent path error
Observed in prod:
invalid value "/app/cloud/shepherd/equinix/manager/test_agent_/test_agent" for flag -agent_executable_path: could not read -agent_executable_path: open /app/cloud/shepherd/equinix/manager/test_agent_/test_agent: no such file or directory
This changes it to:
invalid value "/app/cloud/shepherd/equinix/manager/test_agent_/test_agent" for flag -agent_executable_path: could not read: open /app/cloud/shepherd/equinix/manager/test_agent_/test_agent: no such file or directory
Change-Id: I40a7bd97b37dd8cb72020d69ea4eabd6b3055198
Reviewed-on: https://review.monogon.dev/c/monogon/+/1503
Tested-by: Jenkins CI
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
diff --git a/cloud/shepherd/equinix/manager/initializer.go b/cloud/shepherd/equinix/manager/initializer.go
index 7f1af85..90c852e 100644
--- a/cloud/shepherd/equinix/manager/initializer.go
+++ b/cloud/shepherd/equinix/manager/initializer.go
@@ -59,7 +59,7 @@
}
data, err := os.ReadFile(val)
if err != nil {
- return fmt.Errorf("could not read -agent_executable_path: %w", err)
+ return fmt.Errorf("could not read: %w", err)
}
a.Executable = data
return nil