Skip to content

Commit 3f7908b

Browse files
Condition "if members is not None or not isinstance(members, list)"
was always true.
1 parent eff5099 commit 3f7908b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sssd_test_framework/utils/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def FromDict(cls, d: dict[str, str | int | list[str] | None]) -> GroupEntry:
309309
if gid is not None and not isinstance(gid, int):
310310
raise ValueError("gid is not instance of int")
311311

312-
if members is not None or not isinstance(members, list):
312+
if not isinstance(members, list):
313313
raise ValueError("members is not instance of list")
314314

315315
return cls(

0 commit comments

Comments
 (0)