Skip to content

Commit

Permalink
Merging conditions for data source changes
Browse files Browse the repository at this point in the history
  • Loading branch information
niharika-98 committed Sep 12, 2023
1 parent 68b5fe9 commit 6a6a941
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mmv1/third_party/terraform/provider/provider.go.erb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ func DatasourceMapWithErrors() (map[string]*schema.Resource, error) {
"google_alloydb_supported_database_flags": alloydb.DataSourceAlloydbSupportedDatabaseFlags(),
"google_artifact_registry_repository": artifactregistry.DataSourceArtifactRegistryRepository(),
"google_app_engine_default_service_account": appengine.DataSourceGoogleAppEngineDefaultServiceAccount(),
"google_backup_dr_management_server": backupdr.DataSourceGoogleCloudBackupDRService(),
<% unless version == 'ga' -%>
"google_backup_dr_management_server": backupdr.DataSourceGoogleCloudBackupDRService(),
<% end -%>
"google_beyondcorp_app_connection": beyondcorp.DataSourceGoogleBeyondcorpAppConnection(),
"google_beyondcorp_app_connector": beyondcorp.DataSourceGoogleBeyondcorpAppConnector(),
"google_beyondcorp_app_gateway": beyondcorp.DataSourceGoogleBeyondcorpAppGateway(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<% autogen_exception -%>
package backupdr
<% unless version == 'ga' -%>

import (
"fmt"
Expand Down Expand Up @@ -99,3 +101,4 @@ func dataSourceGoogleCloudBackupDRServiceRead(d *schema.ResourceData, meta inter
d.Set("name", name)
return nil
}
<% end -%>
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<% autogen_exception -%>
package backupdr_test
<% unless version == 'ga' -%>

import (
"testing"
Expand Down Expand Up @@ -65,3 +67,4 @@ func testAccDataSourceGoogleBackupDRManagementServer_basic(context map[string]in
}
`, context)
}
<% end -%>

0 comments on commit 6a6a941

Please sign in to comment.