1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Add GeoCodes.parse and move Move Dyn dynamnic over to use it

This commit is contained in:
Ross McFarland
2018-12-10 14:18:50 -08:00
parent a452a0eb00
commit a169d50fcf
4 changed files with 36 additions and 6 deletions

View File

@@ -18,6 +18,7 @@ from threading import Lock
from uuid import uuid4
from ..record import Record, Update
from ..record.geo import GeoCodes
from .base import BaseProvider
@@ -1109,7 +1110,7 @@ class DynProvider(BaseProvider):
criteria_type = 'always'
try:
for geo in rule.data['geos']:
geo = new.geo_parse(geo)
geo = GeoCodes.geo_parse(geo)
pprint(geo)
criteria_type = 'geoip'
if geo['subdivision_code']: