Fix missing allow_date=False.
This commit is contained in:
parent
9c92c96918
commit
80410f292b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue