summaryrefslogtreecommitdiff
path: root/oslo_config/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_config/types.py')
-rw-r--r--oslo_config/types.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/oslo_config/types.py b/oslo_config/types.py
index 72242cb..8ebc6e6 100644
--- a/oslo_config/types.py
+++ b/oslo_config/types.py
@@ -871,6 +871,13 @@ class HostDomain(HostAddress):
# DOMAIN_REGEX is HOSTNAME_REGEX with the _ character added
DOMAIN_REGEX = '(?!-)[A-Z0-9-_]{1,63}(?<!-)$'
+ def __init__(self, version=None, type_name='host domain value'):
+ """Check for valid version in case an IP address is provided
+
+ """
+
+ super(HostDomain, self).__init__(type_name=type_name)
+
def __call__(self, value):
"""Checks if is a valid IP/hostname.