Skip to content

Commit

Permalink
dataSourceAccount -> DataSourceAccount
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Apr 4, 2024
1 parent 4558f05 commit 2b1c3e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/outscale/terraform-provider-outscale/utils"
)

func dataSourceAccount() *schema.Resource {
func DataSourceAccount() *schema.Resource {
return &schema.Resource{
Read: dataSourceAccountRead,
Read: DataSourceAccountRead,
Schema: map[string]*schema.Schema{
"account_id": {
Type: schema.TypeString,
Expand Down Expand Up @@ -85,7 +85,7 @@ func dataSourceAccount() *schema.Resource {
}
}

func dataSourceAccountRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceAccountRead(d *schema.ResourceData, meta interface{}) error {

conn := meta.(*OutscaleClient).OSCAPI

Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/outscale/terraform-provider-outscale/utils"
)

func dataSourceAccounts() *schema.Resource {
func DataSourceAccounts() *schema.Resource {
return &schema.Resource{
Read: dataSourceAccountsRead,
Read: DataSourceAccountsRead,
Schema: map[string]*schema.Schema{
"accounts": {
Type: schema.TypeList,
Expand Down Expand Up @@ -93,7 +93,7 @@ func dataSourceAccounts() *schema.Resource {
}
}

func dataSourceAccountsRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceAccountsRead(d *schema.ResourceData, meta interface{}) error {

conn := meta.(*OutscaleClient).OSCAPI

Expand Down
4 changes: 2 additions & 2 deletions outscale/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ func Provider() *schema.Provider {
"outscale_api_access_rules": DataSourceOutscaleApiAccessRules(),
"outscale_api_access_policy": DataSourceOutscaleApiAccessPolicy(),
"outscale_public_catalog": DataSourceOutscalePublicCatalog(),
"outscale_account": dataSourceAccount(),
"outscale_accounts": dataSourceAccounts(),
"outscale_account": DataSourceAccount(),
"outscale_accounts": DataSourceAccounts(),
},

ConfigureFunc: providerConfigureClient,
Expand Down

0 comments on commit 2b1c3e1

Please sign in to comment.