fixed record deletion by changing the matching condition
This commit is contained in:
@@ -118,7 +118,7 @@ func (obj *CloudflareDNSRes) Validate() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if obj.MetaParams().Poll == 0 || obj.MetaParams().Poll < 1 {
|
if obj.MetaParams().Poll == 0 || obj.MetaParams().Poll < 1 {
|
||||||
return fmt.Errorf("cloudflare:dns requiers polling, set Meta:poll param (e.g., 60 seconds), min. 1s")
|
return fmt.Errorf("cloudflare:dns requires polling, set Meta:poll param (e.g., 60 seconds), min. 1s")
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
@@ -194,7 +194,7 @@ func (obj *CloudflareDNSRes) CheckApply(ctx context.Context, apply bool) (bool,
|
|||||||
listParams := dns.RecordListParams{
|
listParams := dns.RecordListParams{
|
||||||
ZoneID: cloudflare.F(obj.zoneID),
|
ZoneID: cloudflare.F(obj.zoneID),
|
||||||
Name: cloudflare.F(dns.RecordListParamsName{
|
Name: cloudflare.F(dns.RecordListParamsName{
|
||||||
Exact: cloudflare.F(obj.RecordName), // this matches the exact name
|
Contains: cloudflare.F(obj.RecordName),
|
||||||
}),
|
}),
|
||||||
Type: cloudflare.F(dns.RecordListParamsType(obj.Type)),
|
Type: cloudflare.F(dns.RecordListParamsType(obj.Type)),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user