--- a/pvl/hosts.py Sun Dec 22 19:03:57 2013 +0200
+++ b/pvl/hosts.py Sun Dec 22 19:21:00 2013 +0200
@@ -60,15 +60,15 @@
if domain :
log.debug("%s: explicit domain: %s", host, domain)
+ elif '.' in host :
+ log.debug("%s: using as fqdn without domain", host)
+ domain = None
elif options.hosts_domain :
log.debug("%s: default domain to --hots-domain: %s", host, options.hosts_domain)
domain = options.hosts_domain
elif section :
log.debug("%s: default domain to section: %s", host, section)
domain = section
- elif '.' in host :
- log.debug("%s: using as fqdn without domain", host)
- domain = None
else :
raise ValueError("%s: no domain given" % (host, ))