Skip to content

Commit 161ef3a

Browse files
authored
Merge pull request #1419 from petrpavlu/master
Low: NodeUtilization: Fix checking for Xen commands
2 parents 7f7554c + 5cf5858 commit 161ef3a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

heartbeat/NodeUtilization

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ Host_Total_Memory() {
135135

136136
xentool=$(which xl 2> /dev/null || which xm 2> /dev/null)
137137

138-
if [ -x $xentool ]; then
139-
$xentool info | awk '/total_memory/{printf("%d\n",$3);exit(0)}'
138+
if [ -x "$xentool" ]; then
139+
"$xentool" info | awk '/total_memory/{printf("%d\n",$3);exit(0)}'
140140
else
141-
ocf_log warn "Can only set hv_memory for Xen hypervisor"
141+
ocf_log debug "Can only set hv_memory for Xen hypervisor"
142142
echo "0"
143143
fi
144144
}

0 commit comments

Comments
 (0)