fix bug 3532557: rflash <cec> -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
This commit is contained in:
zhaoertao 2012-06-08 02:03:51 +00:00
parent 6b2e3bafa8
commit f344b40856

View File

@ -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}) {