]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/openssl_keys: 'rm' ignores file not found 49797/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 19 Jan 2023 20:51:18 +0000 (15:51 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 19 Jan 2023 20:51:18 +0000 (15:51 -0500)
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 <cbodley@redhat.com>
qa/tasks/openssl_keys.py

index f9a7f7edecca96a86fb24b864ffd653ca82d0bcd..2d26a87290d73b2b2279c2f7e33154015cba5d1a 100644 (file)
@@ -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