fix: sosreport contains pwd and abs paths (#660)
This commit is contained in:
parent
3dfbbcc770
commit
439e952a25
|
|
@ -130,7 +130,7 @@ func initConfig(configDir string) {
|
||||||
var firstConfigPath string
|
var firstConfigPath string
|
||||||
|
|
||||||
for _, directory := range directories {
|
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)
|
log.Debugf("Checking config path: %s", configPath)
|
||||||
|
|
||||||
if _, err := os.Stat(configPath); err != nil {
|
if _, err := os.Stat(configPath); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue