Skip to content

Commit

Permalink
client: adding sss_ssh_authorizedkeys function
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Lavu committed Oct 8, 2024
1 parent 180a691 commit 5d2358f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sssd_test_framework/roles/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,16 @@ def sss_ssh_knownhosts(self, *args: str) -> ProcessResult:
:rtype: ProcessResult
"""
return self.host.conn.exec(["sss_ssh_knownhosts", *args])

def sss_ssh_authorizedkeys(self, *args: str) -> ProcessResult:
"""
Execute sss_ssh_authorizedkeys.
:param `*args`: Command arguments.
:type `*args`: str
:return: Command result.
:rtype: ProcessResult
"""
result = self.host.conn.exec(["sss_ssh_authorizedkeys", *args], raise_on_error=False)

return result

0 comments on commit 5d2358f

Please sign in to comment.