Browse Source

fix: sosreport contains pwd and abs paths (#660)

James Read 8 months ago
parent
commit
439e952a25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/main.go

+ 1 - 1
service/main.go

@@ -130,7 +130,7 @@ func initConfig(configDir string) {
 	var firstConfigPath string
 
 	for _, directory := range directories {
-		configPath := filepath.Join(directory, "config.yaml")
+		configPath, _ := filepath.Abs(filepath.Join(directory, "config.yaml"))
 		log.Debugf("Checking config path: %s", configPath)
 
 		if _, err := os.Stat(configPath); err != nil {