Skip to content

Commit 94c73ac

Browse files
Updated code to prevent error when user sets api_path to ""
1 parent 5df90d8 commit 94c73ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

path_config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ type keyfactorConfig struct {
4242

4343
func (b *keyfactorBackend) fetchConfig(ctx context.Context, s logical.Storage) (*keyfactorConfig, error) {
4444
if b.cachedConfig != nil {
45+
if b.cachedConfig.CommandAPIPath == "" {
46+
b.cachedConfig.CommandAPIPath = "KeyfactorAPI"
47+
}
4548
return b.cachedConfig, nil
4649
}
4750

0 commit comments

Comments
 (0)