SUSE / SAPHanaSR

SAP HANA System Replication Resource Agent for Pacemaker Cluster
GNU General Public License v2.0
26 stars 21 forks source link

fix BUG super_ocf_log - case sensitive matching prevent setting SAPHa… #245

Open PeterPitterling opened 5 months ago

PeterPitterling commented 5 months ago

…naFilter to all | none - all others worked

broken since [810d1d9]

PeterPitterling commented 5 months ago

The old implementation used the grep "ignore" flag

echo "$shf"| grep -iq ${mtype}; search=$?

The coding is specifying the message type always UPPER case .. FLOW, INFO , etc

The new implementation used the UPPER flag .. declare -u SAPHanaFilter='ra-act-dec-lpa'

But for the values 'all' and 'none' this was not working as the CASE statement compared it lower case to these 2 values.

This PR ensures, whatever is specified .. no matter in coding or set directly in cluster attributes will work.