From d7916655598fd9ce7135264c97eab2832aa39bef Mon Sep 17 00:00:00 2001 From: Ryan Brown Date: Thu, 16 Mar 2017 14:03:42 -0400 Subject: [PATCH] fix validate-module sanity error per https://app.shippable.com/github/ansible/ansible/runs/16493/1/console (#22711) --- test/sanity/validate-modules/validate-modules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sanity/validate-modules/validate-modules b/test/sanity/validate-modules/validate-modules index 7a460e16305..f95673841d0 100755 --- a/test/sanity/validate-modules/validate-modules +++ b/test/sanity/validate-modules/validate-modules @@ -624,6 +624,7 @@ class ModuleValidator(Validator): def _validate_docs(self): doc_info = self._get_docs() + deprecated = False if not bool(doc_info['DOCUMENTATION']['value']): self.errors.append((301, 'No DOCUMENTATION provided')) else: @@ -658,7 +659,6 @@ class ModuleValidator(Validator): 'with DOCUMENTATION.extends_documentation_fragment') )) - deprecated = False if self.object_name.startswith('_') and not os.path.islink(self.object_path): deprecated = True if 'deprecated' not in doc or not doc.get('deprecated'):