Fix local variable 'version_added' referenced before assignment. Fixes #15

reviewable/pr18001/r3
Matt Martz 9 years ago committed by John Barker
parent f0e769e125
commit ab74928259

@ -337,8 +337,9 @@ class ModuleValidator(Validator):
try:
version_added = StrictVersion(str(doc.get('version_added', '0.0')))
except ValueError:
version_added = doc.get('version_added', '0.0')
self.errors.append('version_added is not a valid version '
'number: %s' % version_added)
'number: %r' % version_added)
return
strict_ansible_version = StrictVersion(ansible_version)

Loading…
Cancel
Save