Skip to content

Commit

Permalink
eventhub: updating to the latest sdk changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Jun 21, 2021
1 parent c06532a commit d3683b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func resourceEventHubNamespaceCustomerManagedKeyCreateUpdate(d *pluginsdk.Resour
ctx, cancel := timeouts.ForCreateUpdate(meta.(*clients.Client).StopContext, d)
defer cancel()

id, err := namespaces.NamespaceID(d.Get("eventhub_namespace_id").(string))
id, err := namespaces.ParseNamespaceID(d.Get("eventhub_namespace_id").(string))
if err != nil {
return err
}
Expand Down Expand Up @@ -107,7 +107,7 @@ func resourceEventHubNamespaceCustomerManagedKeyRead(d *pluginsdk.ResourceData,
ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d)
defer cancel()

id, err := namespaces.NamespaceID(d.Id())
id, err := namespaces.ParseNamespaceID(d.Id())
if err != nil {
return err
}
Expand Down Expand Up @@ -147,7 +147,7 @@ func resourceEventHubNamespaceCustomerManagedKeyDelete(d *pluginsdk.ResourceData
ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d)
defer cancel()

id, err := namespaces.NamespaceID(d.Id())
id, err := namespaces.ParseNamespaceID(d.Id())
if err != nil {
return err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func TestAccEventHubNamespaceCustomerManagedKey_update(t *testing.T) {
}

func (r EventHubNamespaceCustomerManagedKeyResource) Exists(ctx context.Context, clients *clients.Client, state *pluginsdk.InstanceState) (*bool, error) {
id, err := namespaces.NamespaceID(state.ID)
id, err := namespaces.ParseNamespaceID(state.ID)
if err != nil {
return nil, err
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func resourceEventHubNamespaceRead(d *pluginsdk.ResourceData, meta interface{})
ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d)
defer cancel()

id, err := namespaces.NamespaceID(d.Id())
id, err := namespaces.ParseNamespaceID(d.Id())
if err != nil {
return err
}
Expand Down Expand Up @@ -429,7 +429,7 @@ func resourceEventHubNamespaceDelete(d *pluginsdk.ResourceData, meta interface{}
ctx, cancel := timeouts.ForDelete(meta.(*clients.Client).StopContext, d)
defer cancel()

id, err := namespaces.NamespaceID(d.Id())
id, err := namespaces.ParseNamespaceID(d.Id())
if err != nil {
return err
}
Expand Down Expand Up @@ -601,8 +601,8 @@ func expandEventHubIdentity(input []interface{}) *namespaces.Identity {

v := input[0].(map[string]interface{})
return &namespaces.Identity{
Type: func() *namespaces.IdentityType {
v := namespaces.IdentityType(v["type"].(string))
Type: func() *namespaces.ManagedServiceIdentityType {
v := namespaces.ManagedServiceIdentityType(v["type"].(string))
return &v
}(),
}
Expand Down

0 comments on commit d3683b6

Please sign in to comment.