Determine if the domain is in a tracked zone.
(domain, zones)
| 67 | |
| 68 | |
| 69 | def find_zone(domain, zones): |
| 70 | """ |
| 71 | Determine if the domain is in a tracked zone. |
| 72 | """ |
| 73 | if domain is None: |
| 74 | return "" |
| 75 | |
| 76 | for zone in zones: |
| 77 | if domain.endswith("." + zone) or domain == zone: |
| 78 | return zone |
| 79 | return "" |
| 80 | |
| 81 | |
| 82 | def update_dns(logger, dns_file, zones, dns_mgr): |
no outgoing calls
no test coverage detected