From ba6beee5230cd37dbad0dc62ece6ec1db6e02735 Mon Sep 17 00:00:00 2001 From: Francesco Romani Date: Wed, 27 Nov 2024 10:34:11 +0100 Subject: [PATCH] WIP Signed-off-by: Francesco Romani --- rte/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rte/main.go b/rte/main.go index d166e3c91..16b5744c0 100644 --- a/rte/main.go +++ b/rte/main.go @@ -56,10 +56,7 @@ func main() { } else if parsedArgs.DumpConfig == ".log" { klog.Infof("current configuration:\n%s", conf) } else { - err = os.WriteFile(parsedArgs.DumpConfig, []byte(conf), 0644) - if err != nil { - klog.Fatalf("failed to write the config to %q: %v", parsedArgs.DumpConfig, err) - } + klog.Fatalf("unsupported option: %q", parsedArgs.DumpConfig) } }