Skip to content

Commit 195bf1c

Browse files
author
Dan Lavu
committed
changing nslookup method for test assertions
1 parent f63a81f commit 195bf1c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sssd_test_framework/utils/network.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,17 @@ def dig(self, address: str, server: str = "", reverse: bool = False) -> dict[str
136136

137137
return None if not records else records[0]
138138

139-
def nslookup(self, args: list[str]) -> ProcessResult:
139+
def nslookup(self, args: list[str]) -> int:
140140
"""
141141
Execute nslookup command with given arguments.
142142
143143
:param args: Arguments to ``nslookup``, defaults to None
144144
:type args: list[str]
145-
:return: SSH Process result
146-
:rtype: ProcessResult
145+
:return: Return code
146+
:rtype: int
147147
"""
148148

149-
return self.host.conn.exec(["nslookup", *args], raise_on_error=False)
149+
return self.host.conn.exec(["nslookup", *args], raise_on_error=False).rc
150150

151151
def teardown(self):
152152
"""

0 commit comments

Comments
 (0)