dnssec-coverage: fix handling of zones without trailing dots

After change 5143, zones listed on the command line without trailing
dots were ignored.

(cherry picked from commit a159675f44)
This commit is contained in:
Tony Finch
2019-02-07 19:00:43 +00:00
committed by Evan Hunt
parent bd3ffce696
commit 5a090dd203
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: