Use right command to validate a template file

to validate a template file without creating a stack from it, you should
use 'heat template-validate' command ('heat validate' is deprecated).

Closes-bug: #1321140
Change-Id: Ia3e3fd49c6da1f27746ef5385e86cfcca3c1de1c
This commit is contained in:
lingxiankong 2014-05-20 22:21:56 +08:00
parent 72c14f058b
commit c29ab5a5e3

View File

@ -46,11 +46,17 @@
</listitem>
<listitem>
<para>You can also use the
<command>stack-create</command> command to
validate a template file without creating a stack
from it.</para>
<command>template-validate</command> command
to validate a template file without creating a
stack from it.</para>
<note><para>Previous versions of the heat client
used <command>validate</command> instead of
<command>template-validate</command>, but
it has been deprecated in favor of
<command>template-validate</command>.
</para></note>
<para>To do so, run the following command:</para>
<screen><prompt>$</prompt> <userinput>heat stack-create mystack --template-file=/<replaceable>PATH_TO_HEAT_TEMPLATES</replaceable>/WordPress_Single_Instance.template</userinput></screen>
<screen><prompt>$</prompt> <userinput>heat template-validate --template-file=/<replaceable>PATH_TO_HEAT_TEMPLATES</replaceable>/WordPress_Single_Instance.template</userinput></screen>
<para>If validation fails, the response returns an
error message.</para>
</listitem>