Skip to content

Commit

Permalink
Merge pull request #4339 from chaitanyadommeti/md5Cleanup
Browse files Browse the repository at this point in the history
File cleanup after md5sum
  • Loading branch information
mergify[bot] authored Jan 8, 2025
2 parents 339d916 + f998f61 commit 3c01933
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ceph/rbd/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def get_md5sum_rbd_image(**kw):
log.error(f"Export failed for image {kw.get('image_spec')}")
return None
return exec_cmd(
output=True, cmd="md5sum {}".format(kw.get("file_path")), node=kw.get("client")
output=True,
cmd=f"md5sum {kw['file_path']} && rm -f {kw['file_path']}",
node=kw.get("client"),
).split()[0]


Expand Down

0 comments on commit 3c01933

Please sign in to comment.