Skip to content

Commit c40937e

Browse files
committed
Bug fix in the documentation for Deploying with Fabric: as of Fabric 1.0, in the local() function capture=False by default, so it must be explicitly set to capture=True so it returns a python string (http://docs.fabfile.org/en/1.0.1/api/core/operations.html#fabric.operations.local)
1 parent e6b9f50 commit c40937e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/patterns/fabric.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ virtual environment::
4848

4949
def deploy():
5050
# figure out the release name and version
51-
dist = local('python setup.py --fullname').strip()
51+
dist = local('python setup.py --fullname', capture=True).strip()
5252
# upload the source tarball to the temporary folder on the server
5353
put('dist/%s.tar.gz' % dist, '/tmp/yourapplication.tar.gz')
5454
# create a place where we can unzip the tarball, then enter

0 commit comments

Comments
 (0)