From bef56e83244250cab687d04d72824c810d18f6f2 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 14 Oct 2024 17:47:32 -0400 Subject: [PATCH] st it --- lib/ansible/module_utils/parsing/docs_to_spec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/parsing/docs_to_spec.py b/lib/ansible/module_utils/parsing/docs_to_spec.py index 05742258a7d..7941fd448cf 100644 --- a/lib/ansible/module_utils/parsing/docs_to_spec.py +++ b/lib/ansible/module_utils/parsing/docs_to_spec.py @@ -90,7 +90,7 @@ def option_to_spec(option, deprecate=None) -> dict: return spec -def restriction_to_spec(r) -> dict: +def restriction_to_spec(r) -> list[list[str]] | None: """ read documented restriction and create spec restriction """ name = None @@ -123,7 +123,7 @@ def restriction_to_spec(r) -> dict: break else: raise Exception('unknown restriction!') - return {name: rest} + return rest def add_options_from_doc(argspec, options, deprecate=None):