From 80966800e266a5231a22bb55723f0e26ad8be0d3 Mon Sep 17 00:00:00 2001 From: XuWei Date: Thu, 16 Nov 2017 22:08:31 -0500 Subject: [PATCH] modified depending on comments --- xCAT-server/lib/xcat/plugins/openbmc.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 627a8ac43..79682a1fc 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -819,10 +819,10 @@ sub parse_args { } elsif ($subcommand eq "dump") { my $option = $ARGV[1]; if ($option =~ /^-d$|^--download$/) { - return ([ 1, "Invalid parameter for $command $option" ]) unless ($ARGV[2]); + return ([ 1, "No dump file ID specified" ]) unless ($ARGV[2]); return ([ 1, "Invalid parameter for $command $option $ARGV[2]" ]) if ($ARGV[2] !~ /^\d*$/); } elsif ($option =~ /^-c$|^--clear$/) { - return ([ 1, "Invalid parameter for $command $option" ]) unless ($ARGV[2]); + return ([ 1, "No dump file ID specified" ]) unless ($ARGV[2]); return ([ 1, "Invalid parameter for $command $option $ARGV[2]" ]) if ($ARGV[2] !~ /^\d*$/ and $ARGV[2] ne "all"); } elsif ($option !~ /^-l$|^--list$|^-g$|^--generate$/) { return ([ 1, "Invalid parameter for $command $option" ]);