Skip to content

Commit b4ccb63

Browse files
ndokosportante
authored andcommitted
Snip off the -UTC part of the timestamp
The ES date parser does not like it.
1 parent 3a42dc2 commit b4ccb63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/pbench/bin/pbench-report-status

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ fi
104104

105105
md5=$(md5sum $file | cut -d' ' -f1)
106106

107-
$dir/pbench-gen-json-payload $timestamp $name $doctype $file > ${tmp}/payload
107+
# drop the -UTC spec from the timestamp: the ES date parser does not like it
108+
$dir/pbench-gen-json-payload ${timestamp%-*} $name $doctype $file > ${tmp}/payload
108109

109110
curl -XPOST -H 'Content-Type: application/json' "http://$server/$index/$doctype/$md5" --data @"${tmp}/payload" >> ${tmp}/log 2>&1
110111
status=$?

0 commit comments

Comments
 (0)