idoverride{user,group}: Fix delete_continue with state absent

All tasks for idoverrideuser and idoverridegroup with state absent
failed with "'continue' is required" when delete_continue was not set.

This happended as delete_continue was internally None and continue: None
was provided to the API.

The fix is simply to use '"continue": delete_continue or False' so that
continue is set to False in this case.
This commit is contained in:
Thomas Woerner
2023-11-16 13:47:04 +01:00
parent f1a6f44477
commit 92e44f6a6c
4 changed files with 281 additions and 160 deletions

View File

@@ -332,7 +332,7 @@ def main():
merge_dicts(
{
"ipaanchoruuid": anchor,
"continue": delete_continue
"continue": delete_continue or False
},
runtime_args
)]

View File

@@ -572,7 +572,7 @@ def main():
merge_dicts(
{
"ipaanchoruuid": anchor,
"continue": delete_continue
"continue": delete_continue or False
},
runtime_args
)]