pvl.hosts-import: drop alias-less aliasX from hosts if empty
authorTero Marttila <terom@paivola.fi>
Thu, 19 Dec 2013 02:17:44 +0200
changeset 315 3ad1822cd91d
parent 314 a1e4ef8dfb76
child 316 41bd6688b142
pvl.hosts-import: drop alias-less aliasX from hosts if empty
bin/pvl.hosts-import
--- a/bin/pvl.hosts-import	Thu Dec 19 02:16:46 2013 +0200
+++ b/bin/pvl.hosts-import	Thu Dec 19 02:17:44 2013 +0200
@@ -568,6 +568,7 @@
                 del by_name[(alias, domain)]
             else :
                 log.warn("%s: %s mapped to %s, but no aliases", alias, alias_field, host)
+                del by_name[(alias, domain)]
 
     for (host, domain), fields in hosts :
         fields = by_name.get((host, domain))