call Utils->Version

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1619 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-06-10 17:25:36 +00:00
parent b077980164
commit 4e36b3cc14

View File

@ -11,6 +11,7 @@ use File::Basename;
use Getopt::Long;
require xCAT::MsgUtils;
require xCAT::DSHCLI;
use xCAT::Utils;
require xCAT::Client;
my $bname = basename($0);
@ -190,7 +191,9 @@ sub parse_args_xdsh
}
if ($options{'version'})
{
xCAT::MsgUtils->message("I", "Version 2.0\n");
my $version = xCAT::Utils->Version();
xCAT::MsgUtils->message("I", $version);
#xCAT::Utils->isLinux();
exit 0;
}
if ($options{'node-rsh'}) # if set on command line, use it