Merge "Use right command to validate a template file"
This commit is contained in:
commit
c4258fe7cd
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user