-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow creating "system" datasources when the experimental build tag is set.
- Loading branch information
1 parent
f3e2aa0
commit 40dbe7f
Showing
3 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// (C) Copyright 2024 Hewlett Packard Enterprise Development LP | ||
|
||
//go:build !experimental | ||
|
||
package provider | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/hashicorp/terraform-plugin-framework/datasource" | ||
) | ||
|
||
// DataSources defines the data sources implemented in the provider. | ||
func (p *PCBeProvider) DataSources( | ||
_ context.Context, | ||
) []func() datasource.DataSource { | ||
return []func() datasource.DataSource{} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// (C) Copyright 2024 Hewlett Packard Enterprise Development LP | ||
|
||
//go:build experimental | ||
|
||
package provider | ||
|
||
import ( | ||
"context" | ||
"github.com/HewlettPackard/hpegl-pcbe-terraform-resources/internal/datasources/system" | ||
"github.com/hashicorp/terraform-plugin-framework/datasource" | ||
) | ||
|
||
// DataSources defines the data sources implemented in the provider. | ||
func (p *PCBeProvider) DataSources( | ||
_ context.Context, | ||
) []func() datasource.DataSource { | ||
return []func() datasource.DataSource{ | ||
system.NewDataSource, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters