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

DNS Record update is not working #16

Open
devilankur18 opened this issue May 3, 2019 · 1 comment
Open

DNS Record update is not working #16

devilankur18 opened this issue May 3, 2019 · 1 comment

Comments

@devilankur18
Copy link

devilankur18 commented May 3, 2019

I already have a dns record, now when I am trying to change the value its not working.

data = {
  type: 'CNAME',
  name: "sub1",
  content: xxx1.example.com,
  proxied: false
}
rec = zone.dns_record(dns_record_id)
rec.update(data).save

#<Cloudflair::DnsRecord:0x00005581eb660298 @zone_id="f123456bxxxxxa2ee661234567890123", @record_id="3232ada1342422424223333", @dirty_data={}>

I looked in to the code, it seems patchable_fields need to be defined for the api dns record related class.

@thde
Copy link
Member

thde commented May 22, 2019

Hey @devilankur18, sadly I'm not able do this ATM. But I'm happy to merge it if you're creating a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants