From a686e47fa279f8106f18fb7fdf7335c882a8c8c5 Mon Sep 17 00:00:00 2001 From: Matias Manavella <67109879+manavellamnimble@users.noreply.github.com> Date: Mon, 3 Aug 2020 19:09:21 -0300 Subject: [PATCH] Issue#228 (#230) * Added timestamp to support-bundle file * Added timestamp to support-bundle file * Added timestamp to support-bundle file * Added timestamp with second-level precision --- cmd/troubleshoot/cli/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/troubleshoot/cli/run.go b/cmd/troubleshoot/cli/run.go index 03dd53044..7694ef3da 100644 --- a/cmd/troubleshoot/cli/run.go +++ b/cmd/troubleshoot/cli/run.go @@ -403,7 +403,7 @@ func runCollectors(v *viper.Viper, collectors []*troubleshootv1beta1.Collect, ad } } - filename, err := findFileName("support-bundle", "tar.gz") + filename, err := findFileName("support-bundle-"+time.Now().Format("2006-01-02T15:04:05"), "tar.gz") if err != nil { return "", errors.Wrap(err, "find file name") }