Skip to content

Commit

Permalink
Look for config file in cwd, not in the directory of the edited file
Browse files Browse the repository at this point in the history
  • Loading branch information
autrilla committed Nov 13, 2016
1 parent c6cdeab commit 597acb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yaml/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (f *configFile) load(bytes []byte) error {
// MasterKeyStringsForFile returns a comma separated string of KMS ARNs and a comma separated list of PGP fingerprints. If the config bytes are left empty, the function will look for the config file by itself.
func MasterKeyStringsForFile(filepath string, confBytes []byte) (kms, pgp string, err error) {
if confBytes == nil {
confPath, err := FindConfigFile(filepath)
confPath, err := FindConfigFile(".")
if err != nil {
return "", "", err
}
Expand Down

0 comments on commit 597acb7

Please sign in to comment.