diff --git a/ipatests/test_integration/test_hsm.py b/ipatests/test_integration/test_hsm.py index 7f92c6a79..374f5c25f 100644 --- a/ipatests/test_integration/test_hsm.py +++ b/ipatests/test_integration/test_hsm.py @@ -898,7 +898,7 @@ class TestHSMNegative(IntegrationTest): '--label', token_name] ) self.master.run_command( - ['usermod', 'pkiuser', '-r', '-G', 'ods'] + ['gpasswd', '-d', 'pkiuser', 'ods'] ) result = tasks.install_master( self.master, raiseonerr=False,