We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 076ff09 commit 1121554Copy full SHA for 1121554
testinfra/modules/group.py
@@ -16,7 +16,7 @@
16
class Group(Module):
17
"""Test unix group"""
18
19
- def __init__(self, name=None):
+ def __init__(self, name):
20
self.name = name
21
super().__init__()
22
@@ -28,9 +28,7 @@ def exists(self):
28
True
29
>>> host.group("nosuchgroup").exists
30
False
31
-
32
"""
33
34
return self.run_expect([0, 2], "getent group %s", self.name).rc == 0
35
36
@property
0 commit comments