Skip to content

Commit

Permalink
fix timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
catriona-m committed Jan 17, 2025
1 parent 1b3f2c1 commit fa7a405
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/services/servicebus/servicebus_namespace_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func resourceServiceBusNamespace() *pluginsdk.Resource {
func resourceServiceBusNamespaceCreate(d *pluginsdk.ResourceData, meta interface{}) error {
client := meta.(*clients.Client).ServiceBus.NamespacesClient
subscriptionId := meta.(*clients.Client).Account.SubscriptionId
ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d)
ctx, cancel := timeouts.ForCreate(meta.(*clients.Client).StopContext, d)
defer cancel()

log.Printf("[INFO] preparing arguments for ServiceBus Namespace create")
Expand Down Expand Up @@ -370,7 +370,7 @@ func resourceServiceBusNamespaceCreate(d *pluginsdk.ResourceData, meta interface

func resourceServiceBusNamespaceUpdate(d *pluginsdk.ResourceData, meta interface{}) error {
client := meta.(*clients.Client).ServiceBus.NamespacesClient
ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d)
ctx, cancel := timeouts.ForUpdate(meta.(*clients.Client).StopContext, d)
defer cancel()

log.Printf("[INFO] preparing arguments for ServiceBus Namespace update")
Expand Down Expand Up @@ -468,11 +468,11 @@ func resourceServiceBusNamespaceUpdate(d *pluginsdk.ResourceData, meta interface
}
log.Printf("[DEBUG] Reset the Existing Network Rule Set associated with %s", id)
} else {
log.Printf("[DEBUG] Creating the Network Rule Set associated with %s..", id)
log.Printf("[DEBUG] Creating/updating the Network Rule Set associated with %s..", id)
if err = createNetworkRuleSetForNamespace(ctx, client, *id, newNetworkRuleSet.([]interface{})); err != nil {
return err
}
log.Printf("[DEBUG] Created the Network Rule Set associated with %s", id)
log.Printf("[DEBUG] Created/updated the Network Rule Set associated with %s", id)
}
}

Expand Down

0 comments on commit fa7a405

Please sign in to comment.