Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fix: Store the absolute path to the keyring file
Browse files Browse the repository at this point in the history
  • Loading branch information
geauxvirtual committed Oct 23, 2015
1 parent a799ad9 commit 30803ab
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pulse.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,18 @@ func action(ctx *cli.Context) {
os.Exit(1)
}
file.Close()
log.Info("setting keyring file to: ", keyringFile)
c.SetKeyringFile(keyringFile)
p, err := filepath.Abs(keyringFile)
if err != nil {
log.WithFields(
log.Fields{
"block": "main",
"_module": "pulsed",
"error": err.Error(),
}).Fatal("Unable to determine absolute path to keyring file")
os.Exit(1)
}
log.Info("setting keyring file to: ", p)
c.SetKeyringFile(p)
}

//Autodiscover
Expand Down

0 comments on commit 30803ab

Please sign in to comment.