cloudflair icon indicating copy to clipboard operation
cloudflair copied to clipboard

DNS Record update is not working

Open devilankur18 opened this issue 6 years ago • 1 comments

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.

devilankur18 avatar May 03 '19 03:05 devilankur18

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

thde avatar May 22 '19 06:05 thde