|
From: | Felix Almeida |
Subject: | [Fab-user] Can't save output to a CSV file if running task in parallel |
Date: | Thu, 10 Sep 2015 20:30:41 +0000 |
Hi all,
I'm trying to run a simple task in parallel that captures the OS type (Linux, AIX, HP-UX, etc.) of a set of UNIX servers and save this information into a CSV file.
However, if I add the @parallel decorator to the task the CSV file is left empty (only the header is saved), but if I remove the @parallel decorator then everything goes well. Note that the output to the screen via puts works fine in both cases.
Please, any ideas of what I'm doing wrong? Perhaps this is not even a fabric question but a Python one (I'm not sure, sorry).
Here is the complete code:
import csv
I run it like this:
fab run_uname:test_hosts.txt My environment is this: RHEL4, Python 2.7.10, Fabric 1.10.2, Paramiko 1.15.2 Thank you! Felix
This communication is confidential. We only send and receive email on the basis of the terms set out at www.rogers.com/web/content/emailnotice Ce message est confidentiel. Notre transmission et réception de courriels se fait strictement suivant les modalités énoncées dans l’avis publié à www.rogers.com/aviscourriel |
[Prev in Thread] | Current Thread | [Next in Thread] |