From 78228d5f8c4b4d7f0fcc99ddf8182bda6045c074 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Thu, 31 Jul 2014 01:02:47 -0700 Subject: [PATCH] fix bug 4213 [FVT on Power 8 DFM]rnetboot -v returns wrong command version --- perl-xCAT/xCAT/PPCboot.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCboot.pm b/perl-xCAT/xCAT/PPCboot.pm index f2991798d..1f5b9e776 100644 --- a/perl-xCAT/xCAT/PPCboot.pm +++ b/perl-xCAT/xCAT/PPCboot.pm @@ -21,7 +21,6 @@ sub parse_args { my %opt = (); my $cmd = $request->{command}; my $args = $request->{arg}; - my @VERSION = qw( 2.1 ); ############################################# # Responds with usage statement @@ -60,7 +59,8 @@ sub parse_args { # Option -v for version #################################### if ( exists( $opt{v} )) { - return( \@VERSION ); + my $version = xCAT::Utils->Version(); + return ([$version]); } if ( exists( $opt{s} ) ){