summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Parser.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-06-10 16:07:42 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-06-10 16:07:42 +0000
commite2f7e8059d5d1bbd1e33ff1cd23869acb9a668a8 (patch)
tree4997a3d08f3c870835c6a7a50fc19b586e6dc743 /cpp/src/IceGrid/Parser.cpp
parentFixed linux compile (diff)
downloadice-e2f7e8059d5d1bbd1e33ff1cd23869acb9a668a8.tar.bz2
ice-e2f7e8059d5d1bbd1e33ff1cd23869acb9a668a8.tar.xz
ice-e2f7e8059d5d1bbd1e33ff1cd23869acb9a668a8.zip
More observer changes
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r--cpp/src/IceGrid/Parser.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp
index bf474aaa221..cc30c6b9eb4 100644
--- a/cpp/src/IceGrid/Parser.cpp
+++ b/cpp/src/IceGrid/Parser.cpp
@@ -358,7 +358,7 @@ Parser::usage()
"application list List all deployed applications.\n"
" to the application."
"\n"
- "server template instantiate APPLICATION TEMPLATE NODE [NAME=VALUE ...]\n"
+ "server template instantiate APPLICATION TEMPLATE [NAME=VALUE ...]\n"
" Instantiate a server template\n"
"server template describe APPLICATION TEMPLATE\n"
" Describe application server template TEMPLATE.\n"
@@ -943,9 +943,9 @@ Parser::describeServerTemplate(const list<string>& args)
void
Parser::instantiateServerTemplate(const list<string>& args)
{
- if(args.size() < 3)
+ if(args.size() < 2)
{
- error("`server template instantiate' requires at least three arguments\n(`help' for more info)");
+ error("`server template instantiate' requires at least two arguments\n(`help' for more info)");
return;
}
@@ -956,7 +956,6 @@ Parser::instantiateServerTemplate(const list<string>& args)
list<string>::const_iterator p = args.begin();
string application = *p++;
string templ = *p++;
- string node = *p++;
for(; p != args.end(); ++p)
{
@@ -967,7 +966,7 @@ Parser::instantiateServerTemplate(const list<string>& args)
}
}
- _admin->instantiateServer(application, templ, node, vars);
+ _admin->instantiateServer(application, templ, vars);
}
catch(const IceXML::ParserException& ex)
{