dnssec-coverage: fix handling of zones without trailing dots

After change 5143, zones listed on the command line without trailing
dots were ignored.
This commit is contained in:
Tony Finch
2019-02-07 19:00:43 +00:00
committed by Evan Hunt
parent cfdf457d3c
commit a159675f44
3 changed files with 15 additions and 1 deletions

View File

@@ -189,7 +189,8 @@ def parse_args():
fatal("ERROR: -f can only be used with one zone.")
# strip trailing dots
args.zone = [x[:-1] for x in args.zone if len(x) > 1 and x[-1] == '.']
args.zone = [x[:-1] if len(x) > 1 and x[-1] == '.' else x
for x in args.zone]
# convert from time arguments to seconds
try: