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:
		@@ -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']:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user