From 5c61f14cc1406d26416bf62df0cd4fcc99978627 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Mon, 22 Apr 2024 11:03:21 +0200
Subject: [PATCH] ipaservice: Do not set continue to None for service_del

delete_continue defaults to None. The use of continue: None is resulting
in an error with the batch command. Therefore only set continue if it is
not None.
---
 plugins/modules/ipaservice.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plugins/modules/ipaservice.py b/plugins/modules/ipaservice.py
index 533eed36..1a4fd714 100644
--- a/plugins/modules/ipaservice.py
+++ b/plugins/modules/ipaservice.py
@@ -840,7 +840,9 @@ def main():
             elif state == "absent":
                 if action == "service":
                     if res_find is not None:
-                        args = {'continue': delete_continue}
+                        args = {}
+                        if delete_continue is not None:
+                            args['continue'] = delete_continue
                         commands.append([name, 'service_del', args])
 
                 elif action == "member":
-- 
GitLab