diff --git a/src/tests/multihost/alltests/test_sssctl_ldap.py b/src/tests/multihost/alltests/test_sssctl_ldap.py index 0740c0ea0ae..72fa11668c4 100644 --- a/src/tests/multihost/alltests/test_sssctl_ldap.py +++ b/src/tests/multihost/alltests/test_sssctl_ldap.py @@ -125,7 +125,7 @@ def test_0004_bz1638295(self, multihost, tools.sssd_conf("ifp", domain_params) multihost.client[0].service_sssd('start') cmd_id = multihost.client[0].run_command("id user5000", raiseonerr=False) - if cmd_id != 0: + if cmd_id.returncode != 0: multihost.client[0].run_command("useradd -u 5000 user5000") multihost.client[0].run_command("passwd --stdin user5000", stdin_text='Secret123')