From 80410f292bbceef98cba3e710085b10b293f35fc Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 15 Jun 2020 20:06:48 +0200 Subject: [PATCH] Fix missing allow_date=False. --- .../_data/sanity/validate-modules/validate_modules/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/main.py b/test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/main.py index 66b4845ce76..535adfc3a28 100644 --- a/test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/main.py +++ b/test/lib/ansible_test/_data/sanity/validate-modules/validate_modules/main.py @@ -1492,7 +1492,7 @@ class ModuleValidator(Validator): removed_at_date = data.get('removed_at_date', None) if removed_at_date is not None: try: - if parse_isodate(removed_at_date) < datetime.date.today(): + if parse_isodate(removed_at_date, allow_date=False) < datetime.date.today(): msg = "Argument '%s' in argument_spec" % arg if context: msg += " found in %s" % " -> ".join(context) @@ -1513,7 +1513,7 @@ class ModuleValidator(Validator): if 'name' in deprecated_alias and 'date' in deprecated_alias: try: date = deprecated_alias['date'] - if parse_isodate(date) < datetime.date.today(): + if parse_isodate(date, allow_date=False) < datetime.date.today(): msg = "Argument '%s' in argument_spec" % arg if context: msg += " found in %s" % " -> ".join(context)