From: J. Eric Ivancich Date: Tue, 23 Jun 2020 21:05:59 +0000 (-0400) Subject: rgw: orphan-list timestamp fix X-Git-Tag: wip-pdonnell-testing-20200918.022351~871^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b1daf30d61989d0813ea73ac19f36b4de6abf13d;p=ceph-ci.git rgw: orphan-list timestamp fix When creating intermediate and output files, the rgw-orphan-list script uses a timestamp using the `date` command. The hour was inserted with "%k" but that padds with a space rather than a zero. So that's changed to "%H". Signed-off-by: J. Eric Ivancich --- diff --git a/src/rgw/rgw-orphan-list b/src/rgw/rgw-orphan-list index 5af5282e037..9219486a71b 100755 --- a/src/rgw/rgw-orphan-list +++ b/src/rgw/rgw-orphan-list @@ -8,7 +8,7 @@ export LANG=C out_dir="." temp_file=/tmp/temp.$$ -timestamp=$(date -u +%Y%m%d%k%M) +timestamp=$(date -u +%Y%m%d%H%M) lspools_err="${out_dir}/lspools-${timestamp}.error" rados_out="${out_dir}/rados-${timestamp}.intermediate" rados_err="${out_dir}/rados-${timestamp}.error"