Merge pull request #8735 from hashicorp/fix_plugin_loading

make period stripping more strict so that users can disable provisine…
This commit is contained in:
Megan Marsh 2020-03-13 12:53:55 -07:00 committed by GitHub
commit 7972ab723a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ func (c *config) discoverSingle(glob string) (map[string]string, error) {
}
// If the filename has a ".", trim up to there
if idx := strings.Index(file, "."); idx >= 0 {
if idx := strings.Index(file, ".exe"); idx >= 0 {
file = file[:idx]
}