diff --git a/plugins/module_utils/modules.py b/plugins/module_utils/modules.py index 53a2be9144..aa602c53c1 100644 --- a/plugins/module_utils/modules.py +++ b/plugins/module_utils/modules.py @@ -160,9 +160,7 @@ def _get_resource_action_list(self): continue try: found_operational_request = re.search(r"OperationModel\(name=.*?\)", ln) - operation_request = found_operational_request.group(0)[ - 20:-1 - ] + operation_request = found_operational_request.group(0)[20:-1] resource = re.search(r"https://.*?\.", ln).group(0)[8:-1] actions.append(f"{resource}:{operation_request}") except AttributeError: