From f344b40856c784f7e982bb59b1e47cca4626317d Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Fri, 8 Jun 2012 02:03:51 +0000 Subject: [PATCH] fix bug 3532557: rflash -v provides fsp instance error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13029 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCrflash.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/PPCrflash.pm b/perl-xCAT/xCAT/PPCrflash.pm index c1b63e6db..232e5821d 100644 --- a/perl-xCAT/xCAT/PPCrflash.pm +++ b/perl-xCAT/xCAT/PPCrflash.pm @@ -102,7 +102,10 @@ sub parse_args { # Option -v for version #################################### if ( exists( $opt{v} )) { - return( \$::VERSION ); + if (!defined($::VERSION)) { + return ([xCAT::Usage->getVersion($cmd)]); + } + return( [$::VERSION] ); } if ( exists( $opt{h}) || $opt{help}) {