Open PeterPitterling opened 1 year ago
to be more precise SAPHanaFilter is already declared
declare -u SAPHanaFilter='ra-act-dec-lpa'
use here instead of specifying same string again ATTR_NAME_HANAFILTER=("hana${sid}_glob_filter" "props" "ra-act-dec-lpa") --> ATTR_NAME_HANAFILTER=("hana${sid}_glob_filter" "props" "${SAPHanaFilter}")
Still unclear what is the real benefit.
currently the filter values 'ra-act-dec-lpa' are defined 2times .. the first declaration has no meaning .. if you want to change the default filter you have to change it in the second occurence
ATTR_NAME_HANAFILTER=("hana${sid}glob_filter" "props" "ra-act-dec-lpa")
this is different again for SAPHana and SAPHanaTopology
https://github.com/SUSE/SAPHanaSR/blob/03db1cd166469f224996cebc2aeb658dcc007976/ra/SAPHanaTopology#L512
https://github.com/SUSE/SAPHanaSR/blob/03db1cd166469f224996cebc2aeb658dcc007976/ra/SAPHanaTopology#L518-L520
declare -u SAPHanaFilter='ra-act-dec-lpa'