Merge "Use right command to validate a template file"

This commit is contained in:
Jenkins 2014-05-22 13:05:55 +00:00 committed by Gerrit Code Review
commit c4258fe7cd

View File

@ -46,11 +46,17 @@
</listitem> </listitem>
<listitem> <listitem>
<para>You can also use the <para>You can also use the
<command>stack-create</command> command to <command>template-validate</command> command
validate a template file without creating a stack to validate a template file without creating a
from it.</para> 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> <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 <para>If validation fails, the response returns an
error message.</para> error message.</para>
</listitem> </listitem>