Validate-modules: adjust test to fixes in #69977 (#69978)

This commit is contained in:
Felix Fontein 2020-06-10 10:02:01 +02:00 committed by GitHub
parent 15f07e7a6c
commit f1ab7cf0c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1574,7 +1574,7 @@ class ModuleValidator(Validator):
for deprecated_alias in deprecated_aliases:
if 'name' in deprecated_alias and 'version' in deprecated_alias:
try:
collection_name = deprecated_alias.get('collection')
collection_name = deprecated_alias.get('collection_name')
version = self._create_version(str(deprecated_alias['version']), collection_name=collection_name)
if has_version and collection_name == self.collection_name and compare_version >= version:
msg = "Argument '%s' in argument_spec" % arg