From 106e879eb956a70fbc890cd14ed4910d20dacae5 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sun, 10 Dec 2023 12:39:15 +0100 Subject: [PATCH] If no zone is given, use the most recent one --- plugins/modules/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/service.py b/plugins/modules/service.py index 2cc1e29..fc230cc 100644 --- a/plugins/modules/service.py +++ b/plugins/modules/service.py @@ -54,7 +54,7 @@ def main(): for d in domains: if d.domain == p['domain'] or d.domain == p['domain'] + ".": for z in d.zone_history: - if z == p['zone']: + if p['zone'] is None or z == p['zone']: zone = d.get_zone(z) if p['subdomain'].removesuffix(d.domain) in zone.services: