summaryrefslogtreecommitdiffstats
path: root/ipatests
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests')
-rw-r--r--ipatests/test_integration/test_legacy_clients.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ipatests/test_integration/test_legacy_clients.py b/ipatests/test_integration/test_legacy_clients.py
index 72b7ff492..6bbe54b32 100644
--- a/ipatests/test_integration/test_legacy_clients.py
+++ b/ipatests/test_integration/test_legacy_clients.py
@@ -233,7 +233,11 @@ class BaseTestLegacyClient(trust_tests.TestEnforcedPosixADTrust):
def uninstall(cls):
cls.master.run_command(['ipa', 'user-del', 'disabledipauser'],
raiseonerr=False)
- tasks.unapply_fixes(cls.legacy_client)
+
+ # Also unapply fixes on the legacy client, if defined
+ if hasattr(cls, 'legacy_client'):
+ tasks.unapply_fixes(cls.legacy_client)
+
super(BaseTestLegacyClient, cls).uninstall()