Skip to content

Commit

Permalink
Merge pull request #224 from motazreda/master
Browse files Browse the repository at this point in the history
fixed issue "Needed to prompt for a connection or sudo password, Abor…
  • Loading branch information
dan-blanchard committed Feb 18, 2016
2 parents 9242807 + 29c0508 commit 0a267ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions streamparse/bootstrap/project/config.jinja2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"envs": {
"prod": {
"user": "",
"ssh_password": "",
"nimbus": "",
"workers": [],
"log": {
Expand Down
4 changes: 3 additions & 1 deletion streamparse/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def activate_env(env_name=None):
env.disable_known_hosts = True
env.forward_agent = True
env.use_ssh_config = True

# fix for config file load issue
if env_config.get("ssh_password"):
env.password = env_config.get("ssh_password")

def die(msg, error_code=1):
print("{}: {}".format(red("error"), msg))
Expand Down

0 comments on commit 0a267ba

Please sign in to comment.