bin/pvl.hosts-reverse
changeset 487 920394061b6f
parent 475 a76571e27c6f
child 489 7f1bd12e0d54
equal deleted inserted replaced
486:cf120b977790 487:920394061b6f
    31     hosts = pvl.hosts.apply(options, args)
    31     hosts = pvl.hosts.apply(options, args)
    32 
    32 
    33     # process
    33     # process
    34     prefix = pvl.dns.parse_prefix(options.reverse_zone)
    34     prefix = pvl.dns.parse_prefix(options.reverse_zone)
    35 
    35 
    36     for rr in pvl.hosts.zone.apply_hosts_reverse(options, hosts, prefix):
    36     try:
    37         print unicode(rr)
    37         for rr in pvl.hosts.zone.apply_hosts_reverse(options, hosts, prefix):
       
    38             print unicode(rr)
       
    39     except pvl.hosts.HostError as error:
       
    40         log.error("%s", error)
       
    41         return 3
    38 
    42 
    39     return 0
    43     return 0
    40 
    44 
    41 if __name__ == '__main__':
    45 if __name__ == '__main__':
    42     pvl.args.main(main)
    46     pvl.args.main(main)