Skip to content

Commit

Permalink
🧹 remove versioned providers for crossProviderList
Browse files Browse the repository at this point in the history
info.Provider is only ever non-versioned and we have updated recordings, so this is no longer necessary

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
  • Loading branch information
arlimus committed Jan 14, 2024
1 parent 3e502d0 commit 60cdc0d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions providers/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,9 +579,7 @@ func (r *Runtime) lookupResourceProvider(resource string) (*ConnectedProvider, *
providerConn := r.Provider.Instance.ID
crossProviderList := []string{
"go.mondoo.com/cnquery/providers/core",
"go.mondoo.com/cnquery/v9/providers/core", // for backwards compatibility
"go.mondoo.com/cnquery/providers/network",
"go.mondoo.com/cnquery/v9/providers/network", // for backwards compatibility
}

if info.Provider != providerConn && !stringx.Contains(crossProviderList, info.Provider) {
Expand Down

0 comments on commit 60cdc0d

Please sign in to comment.