Skip to content

Commit

Permalink
[ignore] Removed 'template' word from schema_site_contract_service_gr…
Browse files Browse the repository at this point in the history
…aph resource name
  • Loading branch information
sajagana committed Nov 6, 2023
1 parent eae3926 commit bbff2c8
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 142 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resource "mso_schema_site" "schema_site_1" {
template_name = data.mso_schema_template_service_graph.sg1.template_name
}

resource "mso_schema_site_template_contract_service_graph" "example" {
resource "mso_schema_site_contract_service_graph" "example" {
schema_id = data.mso_schema.schema1.id
template_name = "t1"
contract_name = "c1"
Expand All @@ -88,7 +88,7 @@ resource "mso_schema_site_template_contract_service_graph" "example" {
}

# Cloud Network Controller site configuration
resource "mso_schema_site_template_contract_service_graph" "example" {
resource "mso_schema_site_contract_service_graph" "example" {
schema_id = data.mso_schema.schema1.id
template_name = "t1"
contract_name = "c1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
)

func dataSourceMSOSchemaSiteTemplateContractServiceGraph() *schema.Resource {
func dataSourceMSOSchemaSiteContractServiceGraph() *schema.Resource {
return &schema.Resource{
Read: dataSourceMSOSchemaSiteTemplateContractServiceGraphRead,
Read: dataSourceMSOSchemaSiteContractServiceGraphRead,

Schema: map[string]*schema.Schema{
"schema_id": &schema.Schema{
Expand Down Expand Up @@ -87,7 +87,7 @@ func dataSourceMSOSchemaSiteTemplateContractServiceGraph() *schema.Resource {
}
}

func dataSourceMSOSchemaSiteTemplateContractServiceGraphRead(d *schema.ResourceData, m interface{}) error {
func dataSourceMSOSchemaSiteContractServiceGraphRead(d *schema.ResourceData, m interface{}) error {
log.Printf("[DEBUG] Beginning datasource Read")

schemaID := d.Get("schema_id").(string)
Expand All @@ -106,7 +106,7 @@ func dataSourceMSOSchemaSiteTemplateContractServiceGraphRead(d *schema.ResourceD
return errorForObjectNotFound(err, d.Id(), cont, d)
}

err = setSiteTemplateContractServiceGraphAttrs(cont, d, true)
err = setSiteContractServiceGraphAttrs(cont, d, true)
if err != nil {
return err
}
Expand Down
Loading

0 comments on commit bbff2c8

Please sign in to comment.