diff --git a/outscale/data_source_outscale_account.go b/outscale/data_source_outscale_account.go index 77a8b57d9..ce8db45a9 100644 --- a/outscale/data_source_outscale_account.go +++ b/outscale/data_source_outscale_account.go @@ -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, @@ -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 diff --git a/outscale/data_source_outscale_accounts.go b/outscale/data_source_outscale_accounts.go index 4c75d09dd..d3fab34c5 100644 --- a/outscale/data_source_outscale_accounts.go +++ b/outscale/data_source_outscale_accounts.go @@ -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, @@ -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 diff --git a/outscale/provider.go b/outscale/provider.go index a1a1ce2c7..fe577b12e 100644 --- a/outscale/provider.go +++ b/outscale/provider.go @@ -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,