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

pull/69987/head
Felix Fontein 5 years ago committed by GitHub
parent 15f07e7a6c
commit f1ab7cf0c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1574,7 +1574,7 @@ class ModuleValidator(Validator):
for deprecated_alias in deprecated_aliases: for deprecated_alias in deprecated_aliases:
if 'name' in deprecated_alias and 'version' in deprecated_alias: if 'name' in deprecated_alias and 'version' in deprecated_alias:
try: 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) 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: if has_version and collection_name == self.collection_name and compare_version >= version:
msg = "Argument '%s' in argument_spec" % arg msg = "Argument '%s' in argument_spec" % arg

Loading…
Cancel
Save