Error discoverying Red Hat Enterprise Linux BP

Document ID : KB000124139
Last Modified Date : 04/01/2019
Show Technical Document Details
Issue:
With CCA 12.8.6 or earlier the Red Hat Enterprise Linux [7].* blueprint provided in the installation, the discovery may fails with parsing errors
Resolution:
One possible reason for this is within the BP, there is 'Crontab' in 'Configuration Executables', the script 

Replace
x=`id|/bin/cut -c5-11`; if [ $x != "0(root)" ];then exit $? ;else CRON_PATH=/var/spool/cron; if [ -d $CRON_PATH ]; then for i in `/bin/ls $CRON_PATH`; do /bin/cat $CRON_PATH/$i | /bin/grep -v "#"| /bin/awk '{sub (/.*/,"&\t",$5); print;}';done | nl -ba | /bin/sed -e 's/^[ ]*//'; else exit $?;fi;fi

With:
x=`id|/bin/cut -c5-11`; if [ $x != "0(root)" ];then exit $? ;else CRON_PATH=/var/spool/cron; if [ -d $CRON_PATH ]; then for i in `/bin/ls $CRON_PATH`; do /bin/cat $CRON_PATH/$i | /bin/grep -v "#"| /bin/awk '{sub (/.*/,"&\t",$5); print;}' | sed '/^[ \t]*$/d';done | nl -ba | /bin/sed -e 's/^[ ]*//'; else exit $?;fi;fi

Which is adding
sed '/^[ \t]*$/d' 
near the end