diff options
author | Matt Martz <matt@sivel.net> | 2019-05-23 16:51:28 -0500 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2019-05-26 08:51:25 -0700 |
commit | 03bab95231ef2f12e273f91ce3538e382cf3e69b (patch) | |
tree | 441f03c2c5d5498056aef3edea9f0e0ebd0101b0 | |
parent | fb96b88122465551ff23b56017da58583d4ca2eb (diff) | |
download | ansible-03bab95231ef2f12e273f91ce3538e382cf3e69b.tar.gz |
[stable-2.6] Validate types before asserting lengths (#56882)
(cherry picked from commit 9c5b721)
Co-authored-by: Matt Martz <matt@sivel.net>
-rw-r--r-- | test/sanity/validate-modules/schema.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sanity/validate-modules/schema.py b/test/sanity/validate-modules/schema.py index 06fde49a9f..1e8e40413f 100644 --- a/test/sanity/validate-modules/schema.py +++ b/test/sanity/validate-modules/schema.py @@ -25,13 +25,13 @@ def sequence_of_sequences(min=None, max=None): return All( Any( None, - [Length(min=min, max=max)], - tuple([Length(min=min, max=max)]), + [Any(list, tuple)], + tuple([Any(list, tuple)]), ), Any( None, - [Any(list, tuple)], - tuple([Any(list, tuple)]), + [Length(min=min, max=max)], + tuple([Length(min=min, max=max)]), ), ) |