Skip to content

Commit 969b853

Browse files
authored
Merge pull request #1586 from ksylvan/0705-another-fix-for-cistom-directory
Fix to persist the CUSTOM_PATTERNS_DIRECTORY variable
2 parents 7c7ceca + e8fe443 commit 969b853

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/tools/custom_patterns/custom_patterns.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ func (o *CustomPatterns) configure() error {
5959

6060
// IsConfigured returns true if a custom patterns directory has been set
6161
func (o *CustomPatterns) IsConfigured() bool {
62+
// First configure to load values from environment variables
63+
o.Configure()
6264
// Check if the plugin has been configured with a directory
6365
return o.CustomPatternsDir.Value != ""
6466
}

0 commit comments

Comments
 (0)