Skip to content

Commit

Permalink
Fixes issue where local plugins are not evaluated as local as giv…
Browse files Browse the repository at this point in the history
…en in docs. Closes #1176
  • Loading branch information
binaek authored Nov 30, 2021
1 parent d5555d1 commit 73d568c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion steampipeconfig/parse/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package parse
import (
"fmt"
"sort"
"strings"

"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/gohcl"
Expand All @@ -26,7 +27,12 @@ func DecodeConnection(block *hcl.Block) (*modconfig.Connection, hcl.Diagnostics)
if diags.HasErrors() {
return nil, diags
}
connection.Plugin = ociinstaller.NewSteampipeImageRef(pluginName).DisplayImageRef()

if strings.HasPrefix(pluginName, "local/") {
connection.Plugin = pluginName
} else {
connection.Plugin = ociinstaller.NewSteampipeImageRef(pluginName).DisplayImageRef()
}
connection.PluginShortName = pluginName

if connectionContent.Attributes["type"] != nil {
Expand Down

0 comments on commit 73d568c

Please sign in to comment.