Clearer logic on ADModel.target_packages method.

This commit is contained in:
Carlos Nihelton 2023-02-07 14:17:49 -03:00
parent fe25d07eca
commit f77971238f
No known key found for this signature in database
GPG Key ID: 6FE346D245197E9A
1 changed files with 4 additions and 1 deletions

View File

@ -30,4 +30,7 @@ class ADModel:
async def target_packages(self):
# NOTE Those packages must be present in the target system to allow
# joining to a domain.
return ["adcli", "realmd", "sssd"] if self.do_join else []
if self.do_join is True:
return ["adcli", "realmd", "sssd"]
return []