Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to lock resource record id and zone id #1490

Merged
merged 2 commits into from
May 26, 2020

Conversation

MalarvizhiK
Copy link
Member

Fix for defect #1430

@@ -355,12 +359,16 @@ func resourceIBMPrivateDNSResourceRecordRead(d *schema.ResourceData, meta interf
}

func resourceIBMPrivateDNSResourceRecordUpdate(d *schema.ResourceData, meta interface{}) error {
id_set := strings.Split(d.Id(), "/")
mk := "private_dns_resource_record_" + id_set[2]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the lock should be on id_set[2] which is the resource record type ID...Its unique for each resource.

It should be also base don zone_id (id_set[1])

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am testing whether update works with zone id or not.

@hkantare hkantare merged commit 8ef7b9f into IBM-Cloud:master May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants