cloudflair
cloudflair copied to clipboard
DNS Record update is not working
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.
Hey @devilankur18, sadly I'm not able do this ATM. But I'm happy to merge it if you're creating a PR.