]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: rgw-orphan-list -- fix interaction, quoting, and percentage calc
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 7 Jul 2020 17:16:02 +0000 (13:16 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Tue, 7 Jul 2020 19:59:13 +0000 (15:59 -0400)
commit6d9d548096d2b5b27a2868562112d90486ab2c78
tree33e9479ab753ada1f0ae8090a2cbf596fd85eef0
parent03dbeebab360b8b4e1bdf7d73f42552e1be88557
rgw: rgw-orphan-list -- fix interaction, quoting, and percentage calc

The interactive mode wasn't working due to prompts going to stdout
instead of stderr. If a space should appear in temporary file, it will
generate a shell error, so quoting was added. Furthermore if there are
no objects found in a pool, a divide by zero error will be
generated. This commit addresses these issues.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/rgw-orphan-list