We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f7554c + 5cf5858 commit 161ef3aCopy full SHA for 161ef3a
1 file changed
heartbeat/NodeUtilization
@@ -135,10 +135,10 @@ Host_Total_Memory() {
135
136
xentool=$(which xl 2> /dev/null || which xm 2> /dev/null)
137
138
- if [ -x $xentool ]; then
139
- $xentool info | awk '/total_memory/{printf("%d\n",$3);exit(0)}'
+ if [ -x "$xentool" ]; then
+ "$xentool" info | awk '/total_memory/{printf("%d\n",$3);exit(0)}'
140
else
141
- ocf_log warn "Can only set hv_memory for Xen hypervisor"
+ ocf_log debug "Can only set hv_memory for Xen hypervisor"
142
echo "0"
143
fi
144
}
0 commit comments