From 3859fed1cce95152cac75e0a8204c95633de952f Mon Sep 17 00:00:00 2001 From: juanmont Date: Mon, 29 Oct 2018 16:54:47 +0100 Subject: [PATCH] development: Changed casecmp? function by upcase and comparation --- src/cli/onevdc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cli/onevdc b/src/cli/onevdc index 39f472d630..d3369175b7 100755 --- a/src/cli/onevdc +++ b/src/cli/onevdc @@ -75,7 +75,7 @@ CommandParser::CmdParser.new(ARGV) do if !arg.nil? && arg.class != Integer && - arg.casecmp?('ALL') + arg.upcase == "ALL" [0, Vdc::ALL_RESOURCES] else OpenNebulaHelper.rname_to_id(arg, 'CLUSTER') @@ -88,7 +88,7 @@ CommandParser::CmdParser.new(ARGV) do if !arg.nil? && arg.class != Integer && - arg.casecmp?('ALL') + arg.upcase == "ALL" [0, Vdc::ALL_RESOURCES] else OpenNebulaHelper.rname_to_id(arg, 'HOST') @@ -101,7 +101,7 @@ CommandParser::CmdParser.new(ARGV) do if !arg.nil? && arg.class != Integer && - arg.casecmp?('ALL') + arg.upcase == "ALL" [0, Vdc::ALL_RESOURCES] else OpenNebulaHelper.rname_to_id(arg, 'DATASTORE') @@ -114,7 +114,7 @@ CommandParser::CmdParser.new(ARGV) do if !arg.nil? && arg.class != Integer && - arg.casecmp?('ALL') + arg.upcase == "ALL" [0, Vdc::ALL_RESOURCES] else OpenNebulaHelper.rname_to_id(arg, 'VNET')