Skip to content

Commit 50e572f

Browse files
committed
lvm-prom-collector: Fix text format error
1 parent 414fb44 commit 50e572f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lvm-prom-collector

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ if [ "$thin_pools" = true ] ; then
115115
declare $line
116116
# Convert ',' to '.'
117117
data_percent=$(echo "$LVM2_DATA_PERCENT" | sed 's/\,/./' )
118+
[ -z "$data_percent" ] && continue
118119
echo "node_lvm_thin_pools_allocated{uuid=\"$LVM2_LV_UUID\", vgroup=\"$LVM2_VG_NAME\"} $data_percent"
119120
done
120121
fi

0 commit comments

Comments
 (0)