From: Casey Bodley Date: Thu, 19 Jan 2023 20:51:18 +0000 (-0500) Subject: qa/openssl_keys: 'rm' ignores file not found X-Git-Tag: v18.1.0~459^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F49797%2Fhead;p=ceph.git qa/openssl_keys: 'rm' ignores file not found on distros with openssl 3, the .srl files don't appear to be created. don't fail if 'rm' can't find them Fixes: https://tracker.ceph.com/issues/58513 Signed-off-by: Casey Bodley --- diff --git a/qa/tasks/openssl_keys.py b/qa/tasks/openssl_keys.py index f9a7f7edecca..2d26a87290d7 100644 --- a/qa/tasks/openssl_keys.py +++ b/qa/tasks/openssl_keys.py @@ -134,7 +134,7 @@ class OpenSSLKeys(Task): csr = f'{self.cadir}/{cert.name}.csr' srl = f'{self.cadir}/{ca_cert.name}.srl' - remove_files = ['rm', csr, srl] + remove_files = ['rm', '-f', csr, srl] # these commands are run on the ca certificate's client because # they need access to its private key and cert