Skip to content

Commit 0331b5e

Browse files
Chaitanya DommetiChaitanya Dommeti
authored andcommitted
Addressed review comment
Signed-off-by: Chaitanya Dommeti <chaitanyadommeti@Chaitanyas-MacBook-Pro.local>
1 parent 21dbf8e commit 0331b5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ceph/rbd/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def get_md5sum_rbd_image(**kw):
6969
log.error(f"Export failed for image {kw.get('image_spec')}")
7070
return None
7171
return exec_cmd(
72-
output=True, cmd="md5sum {}".format(kw.get("file_path")), node=kw.get("client")
72+
output=True,
73+
cmd=f"md5sum {kw['file_path']} && rm -f {kw['file_path']}",
74+
node=kw.get("client"),
7375
).split()[0]
7476

7577

0 commit comments

Comments
 (0)