From 51510d0a5a5702d9254505e015908acf9304bce3 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 11 May 2021 14:39:47 +0000 Subject: [PATCH] M #-: Improve onetemplate description (cherry picked from commit a59e2d2c61d6c6bf495964768882a24f4aa6dd5c) --- src/cli/onetemplate | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/cli/onetemplate b/src/cli/onetemplate index ae0639d1c4..3395e2ff55 100755 --- a/src/cli/onetemplate +++ b/src/cli/onetemplate @@ -225,8 +225,17 @@ CommandParser::CmdParser.new(ARGV) do Creates a new VM instance from the given Template. This VM can be managed with the 'onevm' command. - The source Template can be modified adding or replacing attributes with - the optional file argument, or with the options. + The source Template can be modified by replacing existing attributes; or + adding new DISK or NIC elements. The new attributes can be specified with the + command options or the file argument. + + Example: + + - Instantiate a template and add a new disk + onetemplate instantiate 23 --nic private_net + + - Instanteiate a template and replace CONTEXT with a new one + onetemplate instantiate 23 --startscript /path/to/my/start_script EOT command :instantiate, instantiate_desc, :templateid, [:file, nil],