Skip to content
This repository
Browse code

Use SSH credentials for the SSH command

  • Loading branch information...
commit 09217aebb6c5014afa468b9b963f72fadf620f54 1 parent 0344456
Miquel Torres authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 littlechef/runner.py
6 littlechef/runner.py
@@ -215,9 +215,11 @@ def ssh(name):
215 215 # Execute remotely using either the sudo or the run fabric functions
216 216 with settings(hide("warnings"), warn_only=True):
217 217 if name.startswith("sudo "):
218   - sudo(name[5:])
  218 + with lib.credentials():
  219 + sudo(name[5:])
219 220 else:
220   - run(name)
  221 + with lib.credentials():
  222 + run(name)
221 223
222 224
223 225 def plugin(name):

0 comments on commit 09217ae

Please sign in to comment.
Something went wrong with that request. Please try again.