Skip to content

Commit

Permalink
DEVTOOLING-860-Clean: Removed the reference to Id here. If there is n…
Browse files Browse the repository at this point in the history
…o create because of an ID, the object will be Nil.
  • Loading branch information
carnellj-genesys committed Oct 9, 2024
1 parent 59abaeb commit 5eb4cba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func createExternalContact(ctx context.Context, d *schema.ResourceData, meta int

contact, resp, err := ep.createExternalContact(ctx, &externalContact)
if err != nil {
return util.BuildAPIDiagnosticError(resourceName, fmt.Sprintf("Failed to create external contact %s error: %s", *externalContact.Id, err), resp)
return util.BuildAPIDiagnosticError(resourceName, fmt.Sprintf("Failed to create external contact error: %s", err), resp)
}

d.SetId(*contact.Id)
Expand Down

0 comments on commit 5eb4cba

Please sign in to comment.