We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b688b61 commit a1a3e22Copy full SHA for a1a3e22
ansible_base/resource_registry/shared_types.py
@@ -107,11 +107,8 @@ class RoleDefinitionType(SharedResourceTypeSerializer):
107
permissions = LenientPermissionSlugListField()
108
109
def is_valid(self, raise_exception=False):
110
- if not raise_exception:
111
- return super().is_valid(raise_exception=False)
112
-
113
try:
114
- return super().is_valid(raise_exception=True)
+ return super().is_valid(raise_exception=raise_exception)
115
except ValidationError as e:
116
if hasattr(e, 'detail') and 'content_type' in e.detail:
117
fd_detail = e.detail['content_type'][0]
0 commit comments