fabric/fabric — Issue #492: linewise output not automatically enabled for parallel task using decorator
Author: brndnhy
Created: 2011-12-04 23:40:16+00:00
State: open

brandon@deskk ~ > fab --version
Fabric 1.3.3

brandon@deskk ~ > python --version
Python 2.7.2

brandon@deskk ~ > uname -a
Darwin deskk.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64

Given a parallel task:

@parallel
def uptime():
run("uptime")

bytewise output is seen:

[10.10.10.9] out: . 15:292:26 1up 54,7 d1a.y8s0,, 116.:7447

If the --linewise or -P options are specified this condition can't be reproduced.

From the 1.3.3 documentation:

"Fabric’s option for linewise output is automatically enabled whenever parallelism is active"

Apologies if this is working as intended (i.e. enabled only when Fabric is invoked with the -P option or env.parallel), but it wasn't clear to me.