feature #1112: Removed formatter

This commit is contained in:
Ruben S. Montero committed 2012-03-09 17:13:24 +01:00
1 parent 58989e2e79
commit 6861fa660e
1 file changed
+2 -4
+2 -4
View File
@@ -67,9 +67,11 @@ cmd=CommandParser::CmdParser.new(ARGV) do
}
CREAT_OPTIONS = [ IM, VMM, VNET, OneClusterHelper::CLUSTER ]
########################################################################
# Formatters for arguments
########################################################################
set :format, :hostid, OneHostHelper.to_id_desc do |arg|
helper.to_id(arg)
end
@@ -78,10 +80,6 @@ cmd=CommandParser::CmdParser.new(ARGV) do
helper.list_to_id(arg)
end
set :format, :clusterid, OpenNebulaHelper.rname_to_id_desc("CLUSTER") do |arg|
OpenNebulaHelper.rname_to_id(arg, "CLUSTER")
end
########################################################################
# Commands
########################################################################