@@ -59,12 +59,12 @@ type DataCollector struct {
59
59
60
60
func NewDataCollector (namespaces ... string ) (* DataCollector , error ) {
61
61
62
- tmpDir , err := os .MkdirTemp ("" , "nic -diag" )
62
+ tmpDir , err := os .MkdirTemp ("" , "-pkg -diag" )
63
63
if err != nil {
64
64
return nil , fmt .Errorf ("unable to create temp directory: %s" , err )
65
65
}
66
66
67
- logFile , err := os .OpenFile (filepath .Join (tmpDir , "nic- supportpkg.log" ), os .O_APPEND | os .O_CREATE | os .O_WRONLY , 0644 )
67
+ logFile , err := os .OpenFile (filepath .Join (tmpDir , "supportpkg.log" ), os .O_APPEND | os .O_CREATE | os .O_WRONLY , 0644 )
68
68
if err != nil {
69
69
return nil , fmt .Errorf ("unable to create log file: %s" , err )
70
70
}
@@ -108,7 +108,7 @@ func (c *DataCollector) WrapUp(product string) (string, error) {
108
108
unixTime := time .Now ().Unix ()
109
109
unixTimeString := strconv .FormatInt (unixTime , 10 )
110
110
tarballName := fmt .Sprintf ("%s-supportpkg-%s.tar.gz" , product , unixTimeString )
111
- tarballRootDirName := fmt .Sprintf ("nic -supportpkg-%s" , unixTimeString )
111
+ tarballRootDirName := fmt .Sprintf ("%s -supportpkg-%s" , product , unixTimeString )
112
112
113
113
err := c .LogFile .Close ()
114
114
if err != nil {
0 commit comments