linewise output not automatically enabled for parallel task using decorator #492

Closed
heavyliftco opened this Issue Dec 4, 2011 · 1 comment

Projects

None yet

2 participants

@heavyliftco

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.

@bitprophet
Member

Hm, no, you're right that the intent and language were both supposed to include the decorator, so probably an oversight on our end. Thanks for the tip!

@bitprophet bitprophet was assigned Dec 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment