Fixes zuul failure

template-validate is now updated to validate the template
by using stack create validation path, which causes some of
the existing templates in this repository to fail.
so this patch is added to mark them as invalid and skip them
as part of template validation.

It was failing becuase of circular reference among the resources
in these invalid templates.

depends-on: I15891196be94d1e100869edeba0a7ef557edb36a
Change-Id: I6a003f35495bb43e0ca2a824eb9e503c4059c37a
This commit is contained in:
Kanagaraj Manickam 2015-09-22 16:18:54 +05:30 committed by Kanagaraj Manickam
parent 112fc75a91
commit a288b370f5
3 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import subprocess
import sys
EXCLUDED_DIRS = ('contrib', 'elements')
EXCLUDED_DIRS = ('contrib', 'elements', 'invalid')
def main(args):
@ -37,7 +37,7 @@ def validate(base, name):
try:
subprocess.check_output(args, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
print "Got error validating %s , %s" % (name, e.output)
print "Got error validating %sputt%s , %s" % (base, name, e.output)
if re.search('ERROR: Service (\S+) does not have required endpoint in'
' service catalog for the resource type (\S+)', e.output):
return False