Skip to content

Commit

Permalink
Tests: Make sure that session_multihost.ad is always available.
Browse files Browse the repository at this point in the history
We need it to be defined at least as an empty list so we do not get an
AtributeError when we try to iterate over it.

Reviewed-by: Alexey Tikhonov <[email protected]>
  • Loading branch information
jakub-vavra-cz committed Mar 13, 2023
1 parent 1c55f0d commit 80d28ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tests/multihost/sssd/testlib/common/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def session_multihost(request):
mhost.replica = mhost.domain.hosts_by_role('replica')
mhost.client = mhost.domain.hosts_by_role('client')
mhost.others = mhost.domain.hosts_by_role('other')
mhost.ad = []

if pytest.num_ad > 0:
mhost.ad = []
Expand Down

0 comments on commit 80d28ba

Please sign in to comment.