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:
parent
cdd4d654ce
commit
f9a4f6d4d8
@ -12,5 +12,6 @@ testrepository>=0.0.18
|
|||||||
testscenarios>=0.4
|
testscenarios>=0.4
|
||||||
testtools>=0.9.34
|
testtools>=0.9.34
|
||||||
|
|
||||||
python-heatclient>=1.0.0
|
python-heatclient>=1.2.0
|
||||||
python-keystoneclient>=0.10.0
|
python-keystoneclient>=0.10.0
|
||||||
|
python-openstackclient>=2.1.0
|
||||||
|
@ -29,12 +29,9 @@ def validate(base, name):
|
|||||||
basename, ext = os.path.splitext(name)
|
basename, ext = os.path.splitext(name)
|
||||||
if basename.endswith("_env"):
|
if basename.endswith("_env"):
|
||||||
return False
|
return False
|
||||||
args = ["heat",
|
args = ["openstack", "orchestration", "template", "validate",
|
||||||
"template-validate",
|
"-t", os.path.join(base, name),
|
||||||
"-f",
|
"--ignore-errors", "99001"]
|
||||||
os.path.join(base, name),
|
|
||||||
"--ignore-errors",
|
|
||||||
'99001']
|
|
||||||
base_env = "%s_env%s" % (basename, ext)
|
base_env = "%s_env%s" % (basename, ext)
|
||||||
env = os.path.join(base, base_env)
|
env = os.path.join(base, base_env)
|
||||||
if os.path.exists(env):
|
if os.path.exists(env):
|
||||||
|
Loading…
Reference in New Issue
Block a user