Use new openstack heat plugins for validation

Make use of new openstack orchestration template validate
heat plugin command in ver 1.2.0.

Depends-On: Icf5794ad6bb35574a060f095d7ef10e6a46ca2fe
Change-Id: I516da8cee501fab47cf34bdd3bb98cc5d7299c4a
Blueprint: heat-support-python-openstackclient
This commit is contained in:
Mark Vanderwiel 2016-02-26 10:30:46 -06:00
parent cdd4d654ce
commit f9a4f6d4d8
2 changed files with 5 additions and 7 deletions

View File

@ -12,5 +12,6 @@ testrepository>=0.0.18
testscenarios>=0.4
testtools>=0.9.34
python-heatclient>=1.0.0
python-heatclient>=1.2.0
python-keystoneclient>=0.10.0
python-openstackclient>=2.1.0

View File

@ -29,12 +29,9 @@ def validate(base, name):
basename, ext = os.path.splitext(name)
if basename.endswith("_env"):
return False
args = ["heat",
"template-validate",
"-f",
os.path.join(base, name),
"--ignore-errors",
'99001']
args = ["openstack", "orchestration", "template", "validate",
"-t", os.path.join(base, name),
"--ignore-errors", "99001"]
base_env = "%s_env%s" % (basename, ext)
env = os.path.join(base, base_env)
if os.path.exists(env):