add call to Utils->Version
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1841 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d2066779b0
commit
58ea144016
@ -22,7 +22,7 @@ my $usage_string=
|
||||
-h|--help Display this usage statement.
|
||||
-v|--version Display the version number.";
|
||||
|
||||
my $version_string="Version 2.0";
|
||||
my $version_string=xCAT::Utils->Version();
|
||||
|
||||
sub handled_commands {
|
||||
return {
|
||||
|
@ -40,7 +40,8 @@ sub process_request {
|
||||
"version|v" => \$version
|
||||
);
|
||||
if ($version) {
|
||||
$callback->({info=>["Version 2.0"]});
|
||||
my $version = xCAT::Utils->Version();
|
||||
$callback->({info=>[$version]});
|
||||
return;
|
||||
}
|
||||
if ($help) {
|
||||
|
@ -11,7 +11,7 @@ use xCAT::Schema;
|
||||
use Data::Dumper;
|
||||
use xCAT::NodeRange;
|
||||
use xCAT::Schema;
|
||||
|
||||
use xCAT::Utils;
|
||||
use Getopt::Long;
|
||||
|
||||
1;
|
||||
@ -226,7 +226,8 @@ sub noderm
|
||||
|
||||
if ($VERSION) {
|
||||
my %rsp;
|
||||
$rsp->{data}->[0] = "2.0";
|
||||
my $version = xCAT::Utils->Version();
|
||||
$rsp->{data}->[0] = "$version";
|
||||
$cb->($rsp);
|
||||
return;
|
||||
}
|
||||
@ -539,7 +540,8 @@ sub nodech
|
||||
# Version
|
||||
if ($VERSION) {
|
||||
my %rsp;
|
||||
$rsp->{data}->[0] = "2.0";
|
||||
my $version = xCAT::Utils->Version();
|
||||
$rsp->{data}->[0] = "$version";
|
||||
$callback->($rsp);
|
||||
return;
|
||||
}
|
||||
@ -772,7 +774,8 @@ sub nodels
|
||||
if ($VERSION)
|
||||
{
|
||||
my %rsp;
|
||||
$rsp->{data}->[0] = "2.0";
|
||||
my $version = xCAT::Utils->Version();
|
||||
$rsp->{data}->[0] = "$version";
|
||||
$callback->($rsp);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user