Skip to content

Commit

Permalink
fix lint errors and provide hook for expected function from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Lucas committed Sep 25, 2023
1 parent 1391b25 commit 3b0c9ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sysdig/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ type SysdigProvider struct {
SysdigClient SysdigClients
}

// Used by tests to get the provider
func Provider() *schema.Provider {
sysdigClient := NewSysdigClients()
provider := &SysdigProvider{SysdigClient: sysdigClient}
return provider.Provider()
}

func (p *SysdigProvider) Provider() *schema.Provider {
return &schema.Provider{
Schema: map[string]*schema.Schema{
Expand Down

0 comments on commit 3b0c9ba

Please sign in to comment.