From 360bc2a587713c908cecaf2e770e46dcb5cd9fb9 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sun, 10 Dec 2023 12:39:42 +0100 Subject: [PATCH] Fix get_zone args --- 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 fc230cc..a4fe588 100644 --- a/plugins/modules/service.py +++ b/plugins/modules/service.py @@ -55,7 +55,7 @@ def main(): if d.domain == p['domain'] or d.domain == p['domain'] + ".": for z in d.zone_history: if p['zone'] is None or z == p['zone']: - zone = d.get_zone(z) + zone = d.get_zone(z.id) if p['subdomain'].removesuffix(d.domain) in zone.services: for s in zone.services[p['subdomain'].removesuffix(d.domain)]: