Export extractExTags and updateExclTags
[ganeti-local] / lib / qlang.py
index af423e1..2352391 100644 (file)
@@ -38,7 +38,6 @@ import logging
 import pyparsing as pyp
 
 from ganeti import errors
-from ganeti import netutils
 from ganeti import utils
 from ganeti import compat
 
@@ -258,20 +257,6 @@ def ParseFilter(text, parser=None):
                                        " '%s': %s" % (text, err), err)
 
 
-def _IsHostname(text):
-  """Checks if a string could be a hostname.
-
-  @rtype: bool
-
-  """
-  try:
-    netutils.Hostname.GetNormalizedName(text)
-  except errors.OpPrereqError:
-    return False
-  else:
-    return True
-
-
 def _CheckFilter(text):
   """CHecks if a string could be a filter.