We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21dbf8e commit 0331b5eCopy full SHA for 0331b5e
ceph/rbd/utils.py
@@ -69,7 +69,9 @@ def get_md5sum_rbd_image(**kw):
69
log.error(f"Export failed for image {kw.get('image_spec')}")
70
return None
71
return exec_cmd(
72
- output=True, cmd="md5sum {}".format(kw.get("file_path")), node=kw.get("client")
+ output=True,
73
+ cmd=f"md5sum {kw['file_path']} && rm -f {kw['file_path']}",
74
+ node=kw.get("client"),
75
).split()[0]
76
77
0 commit comments