Skip to content

Commit

Permalink
fixup! Add status to azurerm_servicebus_subscription resource
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-sensenich committed Jul 23, 2020
1 parent e3a3b45 commit 87b1115
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 100 deletions.
22 changes: 0 additions & 22 deletions azurerm/internal/services/servicebus/helper/entity_status.go

This file was deleted.

75 changes: 0 additions & 75 deletions azurerm/internal/services/servicebus/helper/entity_status_test.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/features"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/servicebus/helper"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/servicebus/validate"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/timeouts"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils"
Expand Down Expand Up @@ -158,7 +157,7 @@ func resourceArmServiceBusSubscriptionCreateUpdate(d *schema.ResourceData, meta
EnableBatchedOperations: &enableBatchedOps,
MaxDeliveryCount: &maxDeliveryCount,
RequiresSession: &requiresSession,
Status: helper.ExpandEntityStatus(d.Get("status")),
Status: servicebus.EntityStatus(d.Get("status").(string)),
},
}

Expand Down Expand Up @@ -236,7 +235,7 @@ func resourceArmServiceBusSubscriptionRead(d *schema.ResourceData, meta interfac
d.Set("requires_session", props.RequiresSession)
d.Set("forward_to", props.ForwardTo)
d.Set("forward_dead_lettered_messages_to", props.ForwardDeadLetteredMessagesTo)
d.Set("status", helper.FlattenEntityStatus(props.Status))
d.Set("status", utils.String(string(props.Status)))

if count := props.MaxDeliveryCount; count != nil {
d.Set("max_delivery_count", int(*count))
Expand Down

0 comments on commit 87b1115

Please sign in to comment.