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:
parent
6b2e3bafa8
commit
f344b40856
@ -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}) {
|
||||
|
Loading…
Reference in New Issue
Block a user