Naim Shahidan
2014-04-04 05:04:34 UTC
Hi guys,
im building a SSH dispatcher python script using Fabric module. Im using
fabric.contex_manager to hide running and status message.
But went i try to run the script, status message keep showing even though i
use hide().
=========== code snippet ==================
def letsdoit():
with settings(*hide('status', 'running')*):
for server_name in deco_name:
mydeco(server_name, host[i])
============== OUTPUT ======================
##########LOCALHOST###########
current date:
[localhost] out: Fri Apr 4 12:57:41 MYT 2014
[localhost] out:
system information:
[localhost] out: Linux shad0w 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64
GNU/Linux
[localhost] out:
##########MYSERVER###########
current date:
[192.168.1.11] out: Fri Apr 4 12:57:59 MYT 2014
[192.168.1.11] out:
system information:
[192.168.1.11] out: Linux modsec-dev-patchstore 3.11.0-15-generic
#25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64 x86_64
GNU/Linux
[192.168.1.11] out:
Done.
*Disconnecting from 192.168.1.11... done. # status still showing*
*Disconnecting from localhost... done.*
can someone kindly tell me whats going on?
regards,
Naim S.
im building a SSH dispatcher python script using Fabric module. Im using
fabric.contex_manager to hide running and status message.
But went i try to run the script, status message keep showing even though i
use hide().
=========== code snippet ==================
def letsdoit():
with settings(*hide('status', 'running')*):
for server_name in deco_name:
mydeco(server_name, host[i])
============== OUTPUT ======================
##########LOCALHOST###########
current date:
[localhost] out: Fri Apr 4 12:57:41 MYT 2014
[localhost] out:
system information:
[localhost] out: Linux shad0w 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64
GNU/Linux
[localhost] out:
##########MYSERVER###########
current date:
[192.168.1.11] out: Fri Apr 4 12:57:59 MYT 2014
[192.168.1.11] out:
system information:
[192.168.1.11] out: Linux modsec-dev-patchstore 3.11.0-15-generic
#25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64 x86_64
GNU/Linux
[192.168.1.11] out:
Done.
*Disconnecting from 192.168.1.11... done. # status still showing*
*Disconnecting from localhost... done.*
can someone kindly tell me whats going on?
regards,
Naim S.