aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gier <pgier@redhat.com>2019-05-20 13:05:39 -0500
committerBen Kochie <superq@gmail.com>2019-06-04 18:38:40 +0200
commit5cee32bafee63687950537eb1cdffdfd6058c31a (patch)
tree32fe5646cc897087aa821fd58bb68f7e6a361eeb
parent8c47f973111cfc65a9c252ce5ad7f67ecf1798e7 (diff)
downloadprometheus_node_collector-5cee32bafee63687950537eb1cdffdfd6058c31a.tar.bz2
prometheus_node_collector-5cee32bafee63687950537eb1cdffdfd6058c31a.tar.xz
prometheus_node_collector-5cee32bafee63687950537eb1cdffdfd6058c31a.zip
fix or ignore codespell issues (#1351)
Signed-off-by: Paul Gier <pgier@redhat.com>
-rw-r--r--.circleci/config.yml2
-rwxr-xr-xtext_collector_examples/md_info_detail.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 7fb9bf3..90a3a41 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -28,7 +28,7 @@ jobs:
28 steps: 28 steps:
29 - checkout 29 - checkout
30 - run: sudo pip install codespell 30 - run: sudo pip install codespell
31 - run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum" -L uint 31 - run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum" -L uint,packages\',uptodate
32 32
33 build: 33 build:
34 machine: 34 machine:
diff --git a/text_collector_examples/md_info_detail.sh b/text_collector_examples/md_info_detail.sh
index 6d45248..9806ebb 100755
--- a/text_collector_examples/md_info_detail.sh
+++ b/text_collector_examples/md_info_detail.sh
@@ -59,7 +59,7 @@ for MD_DEVICE in /dev/md/*; do
59 59
60 # Output RAID "Devices", "Size" and "Event" metrics, from the output of "mdadm --detail" 60 # Output RAID "Devices", "Size" and "Event" metrics, from the output of "mdadm --detail"
61 while IFS= read -r line ; do 61 while IFS= read -r line ; do
62 # Filter out these keys that have numberic values that increment up 62 # Filter out these keys that have numeric values that increment up
63 if echo "$line" | grep -E -q "Devices :|Array Size :| Used Dev Size :|Events :"; then 63 if echo "$line" | grep -E -q "Devices :|Array Size :| Used Dev Size :|Events :"; then
64 MDADM_DETAIL_KEY=$(echo "$line" | cut -d ":" -f 1 | tr -cd '[a-zA-Z0-9]._-') 64 MDADM_DETAIL_KEY=$(echo "$line" | cut -d ":" -f 1 | tr -cd '[a-zA-Z0-9]._-')
65 MDADM_DETAIL_VALUE=$(echo "$line" | cut -d ":" -f 2 | cut -d " " -f 2 | sed 's:^ ::') 65 MDADM_DETAIL_VALUE=$(echo "$line" | cut -d ":" -f 2 | cut -d " " -f 2 | sed 's:^ ::')