Skip to content

Commit

Permalink
Rework to use fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
vince-weka committed Oct 2, 2024
1 parent f0a71b8 commit d06a864
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wekapyutils/wekassh.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def ask_for_credentials(self):
print()
# return (user, password)

def connect(self):
def connect(self, forward_agent=False):
failures = 0
self.kwargs = {"forward_agent": True} # this causes problems...
self.kwargs = {"forward_agent": forward_agent}
while True:
try:
self.connection = fabric.Connection(self._hostname, **self.kwargs)
Expand Down

0 comments on commit d06a864

Please sign in to comment.