diff --git a/ipatests/test_integration/test_ipa_cert_fix.py b/ipatests/test_integration/test_ipa_cert_fix.py index bb03d4309..77076e78e 100644 --- a/ipatests/test_integration/test_ipa_cert_fix.py +++ b/ipatests/test_integration/test_ipa_cert_fix.py @@ -122,9 +122,10 @@ def expire_cert_critical(): # errors from certmonger trying to check the status of certs # that don't matter because we are uninstalling. host.run_command(['systemctl', 'stop', 'certmonger']) - host.run_command( - ['rm', '-f', paths.CERTMONGER_REQUESTS_DIR + '/*'] - ) + # Important: run_command with a str argument is able to + # perform shell expansion but run_command with a list of + # arguments is not + host.run_command('rm -fv ' + paths.CERTMONGER_REQUESTS_DIR + '*') tasks.uninstall_master(host) tasks.move_date(host, 'start', '-3Years-1day')