2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #4367 from samveen/fix_discovery

Fix check for MTM values with spaces
This commit is contained in:
zet809 2017-12-01 13:45:05 +08:00 committed by GitHub
commit c24af9a711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ if [ "$UUID" != "unknown" ]; then
fi
flag_mtm=`echo "$MTM" | sed 's/0//g'`
if [ $flag_mtm ] && [ "$MTM" != "unknown" ]; then
if [ "$flag_mtm" ] && [ "$MTM" != "unknown" ]; then
MTM=`echo $MTM | sed 's/\.//g'`
echo "<mtm>$MTM</mtm>" >> /tmp/discopacket
fi