(config, hostname, type, content)
| 74 | |
| 75 | @retry(stop_max_attempt_number=MAX_RETRIES, wait_fixed=BACKOFF_SECS * 1000) |
| 76 | def create_dns(config, hostname, type, content): |
| 77 | cf = CloudFlare.CloudFlare(debug=False, token=get_env("DNS_API_TOKEN")) |
| 78 | cf.zones.dns_records.post( |
| 79 | config["zone_tag"], |
| 80 | data={'name': hostname, 'type': type, 'content': content, 'proxied': True} |
| 81 | ) |
| 82 | |
| 83 | |
| 84 | def create_named_dns(config, random_uuid): |
no test coverage detected
searching dependent graphs…