adding Poll condition to guarantee minimum time between tries
This commit is contained in:
@@ -117,8 +117,8 @@ func (obj *CloudflareDNSRes) Validate() error {
|
||||
return fmt.Errorf("content is required when state is 'exists'")
|
||||
}
|
||||
|
||||
if obj.MetaParams().Poll == 0 {
|
||||
return fmt.Errorf("cloudflare:dns requiers polling, set Meta:poll param (e.g., 60 seconds)")
|
||||
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 nil
|
||||
|
||||
Reference in New Issue
Block a user