fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] [++] Re: Suppressing Output


From: Mike Andrewjeski
Subject: [Fab-user] [++] Re: Suppressing Output
Date: Wed, 12 Nov 2014 14:04:53 -0800

Thank you Alexander,  that does indeed work.
 
My only question is why if I use: with hide(('running', 'status'):
inside my fabfile does it allow  the "Done & Disconnecting" messages to persist.
 
thanks again,
 
-jeski 

>>> Alexander Fortin <address@hidden> 11/12/2014 1:21 PM >>>
On 12. November 2014 at 22:10:31, Mike Andrewjeski (address@hidden) wrote:
> Hi List,

> I've read through the threads regarding suppressing hostname and am using contextmanager 
> to do so along with using
> with hide('running', 'status').

> What I'm attempting to accomplish is retrieve json data from puppetdb using curl, and 
> *only* json. The output will be used in other tasks
> conditionally based on the content of the json.

> Using the two methods mentioned above, I'm able to get json output save for the end of the 
> task where fabric finishes and announces it is done:

> Done.
> Disconnecting from puppet.somewhere.com... done.

> Any thought on how one might suppress this output as well? I can post the task I'm using, 
> if it helps..

Hi Mike,

try to use the -hide=status(,running) parameter when running Fabric, it should be apply globally.

http://docs.fabfile.org/en/1.10/usage/fab.html#cmdoption--hide

HTH

-- 
Alexander Fortin
http://about.me/alexanderfortin

Please Note:

The information in this Business Wire e-mail message, and any files transmitted with it, is confidential and may be legally privileged. It is intended only for the use of the individual(s) named above. If you are the intended recipient, be aware that your use of any confidential or personal information may be restricted by state and federal privacy laws. If you, the reader of this message, are not the intended recipient, you are hereby notified that you should not further disseminate, distribute, or forward this e-mail message. If you have received this e-mail in error, please notify the sender and delete the material from any computer.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]