How to reproduce:
1.down the latest build
2.root@c910f03c05k05:~# lsdef -v
lsdef - Version 2.10 (git commit 22b5c8fd793ca32bb75f76899e1d27bd203a53c6, built Wed May 27 11:38:46 EDT 2015)
root@c910f03c05k05:~# rcons -v
++ uname
+ os=Linux
+ '[' Linux == Linux ']'
++ cut -d: -f 6
+++ whoami
++ getent passwd root
+ HOME=/root
+ export HOME
+ '[' Linux == AIX ']'
+ '[' -z -v ']'
+ '[' -v = -h ']'
+ '[' -v = -help ']'
+ '[' -v = --help ']'
+ '[' -v = -v ']'
+ echo 'Version 2.9'
Version 2.9
+ exit 0
root@c910f03c05k05:~#
--------> only 2.9 version here
Should not hard code the 2.9 in rcons -v, could call xCAT::Version->Version() to get the exact xCAT version.
Fixed in xCAT 2.10:
commit 8d957f8b11602120a70285e5dc831cf3e0b7d0bd
[root@c910f02c01p02 ~]# rcons -v
Version 2.10 (git commit e16453569dc8e696b7217f40ac6e722a519272e2, built Sun Jun 7 22:12:17 EDT 2015)
[root@c910f02c01p02 ~]# rcons --version
Version 2.10 (git commit e16453569dc8e696b7217f40ac6e722a519272e2, built Sun Jun 7 22:12:17 EDT 2015)
[root@c910f02c01p02 ~]#