move hostname validation regex to skydns client

master
Justin Riley 2016-07-14 22:25:54 -04:00
parent 5cc9f7f9a5
commit 6cb4976961
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,5 @@
import re
import oca
RE_VALIDNAME = re.compile('[^\w\d.-]')
class OneClient(object):
"""

View File

@ -1,7 +1,10 @@
import re
import etcd
from onedns.logger import log
RE_VALIDNAME = re.compile('[^\w\d.-]')
class SkyDNSClient(object):
def __init__(self, etcd_kwargs={}):