Skip to content

Commit

Permalink
Merge pull request #1848 from HideoYamauchi/trac5309-2
Browse files Browse the repository at this point in the history
Mid: ocf-shellfuncs: Explicitly specify $OCF_RESOURCE_INSTANCE in the p parameter for compatibility.
  • Loading branch information
oalbrigt authored Mar 13, 2023
2 parents f49caa9 + 76cc4da commit fe1a2f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heartbeat/ocf-shellfuncs.in
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ ocf_promotion_score() {
ocf_version_cmp "$OCF_RESKEY_crm_feature_set" "3.10.0"
res=$?
if [ $res -eq 2 ] || [ $res -eq 1 ] || ! have_binary "crm_master"; then
${HA_SBIN_DIR}/crm_attribute -p $@
${HA_SBIN_DIR}/crm_attribute -p ${OCF_RESOURCE_INSTANCE} $@
else
${HA_SBIN_DIR}/crm_master -l reboot $@
fi
Expand Down

0 comments on commit fe1a2f8

Please sign in to comment.