move hostname validation regex to skydns client
parent
5cc9f7f9a5
commit
6cb4976961
|
@ -1,8 +1,5 @@
|
||||||
import re
|
|
||||||
import oca
|
import oca
|
||||||
|
|
||||||
RE_VALIDNAME = re.compile('[^\w\d.-]')
|
|
||||||
|
|
||||||
|
|
||||||
class OneClient(object):
|
class OneClient(object):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
import re
|
||||||
import etcd
|
import etcd
|
||||||
|
|
||||||
from onedns.logger import log
|
from onedns.logger import log
|
||||||
|
|
||||||
|
RE_VALIDNAME = re.compile('[^\w\d.-]')
|
||||||
|
|
||||||
|
|
||||||
class SkyDNSClient(object):
|
class SkyDNSClient(object):
|
||||||
def __init__(self, etcd_kwargs={}):
|
def __init__(self, etcd_kwargs={}):
|
||||||
|
|
Loading…
Reference in New Issue