Skip to content

Commit

Permalink
s/_transport/get_transport()/g - fixes #37
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Mar 16, 2011
1 parent 47329a6 commit 29c3ba8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/changes/0.9.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Feature additions
Bugfixes
========

* :issue:`37`: Internal refactoring of a Paramiko call from ``_transport`` to
``get_transport()``.
* :issue:`264`: Fix edge case in `~fabric.operations.reboot` by gracefully
clearing connection cache.
* :issue:`268`: Allow for ``@`` symbols in usernames, which is valid on some
Expand Down
4 changes: 2 additions & 2 deletions fabric/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def run(command, shell=True, pty=False):
print("[%s] run: %s" % (env.host_string, real_command))
elif output.running:
print("[%s] run: %s" % (env.host_string, command))
channel = connections[env.host_string]._transport.open_session()
channel = connections[env.host_string].get_transport().open_session()
# Create pty if necessary (using Paramiko default options, which as of
# 1.7.4 is vt100 $TERM @ 80x24 characters)
if pty:
Expand Down Expand Up @@ -526,7 +526,7 @@ def sudo(command, shell=True, user=None, pty=False):
print("[%s] sudo: %s" % (env.host_string, real_command))
elif output.running:
print("[%s] sudo: %s" % (env.host_string, command))
channel = connections[env.host_string]._transport.open_session()
channel = connections[env.host_string].get_transport().open_session()
# Create pty if necessary (using Paramiko default options, which as of
# 1.7.4 is vt100 $TERM @ 80x24 characters)
if pty:
Expand Down

0 comments on commit 29c3ba8

Please sign in to comment.