summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFelix Fontein <felix@fontein.de>2024-07-02 15:36:23 +0200
committerGitHub <noreply@github.com>2024-07-02 15:36:23 +0200
commit7d678cbd96bb3a2cf1cb5fb0e064b4d9b2cf201a (patch)
tree0d0318dc319123916afe3ec8d9443e56aad68393 /test
parentactually show plugin config warnings/deprecations (#82593) (diff)
downloadansible-7d678cbd96bb3a2cf1cb5fb0e064b4d9b2cf201a.tar.xz
ansible-7d678cbd96bb3a2cf1cb5fb0e064b4d9b2cf201a.zip
Fix require_only_one. (#83511)
Diffstat (limited to 'test')
-rw-r--r--test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py b/test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py
index a7cc666ed9..d44553e64a 100644
--- a/test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py
+++ b/test/lib/ansible_test/_util/controller/sanity/validate-modules/validate_modules/schema.py
@@ -89,7 +89,7 @@ def require_only_one(keys):
found = None
for k in obj.keys():
if k in keys:
- if k is None:
+ if found is None:
found = k
else:
raise Invalid('Found conflicting keys, must contain only one of {}'.format(keys))