updated fabric commands to be hide output
This commit is contained in:
parent
b703ad11c6
commit
9e7b5abeb9
1 changed files with 3 additions and 2 deletions
|
@ -18,6 +18,7 @@ from core.nodes.ipaddress import IpAddress
|
|||
from core.nodes.network import CoreNetwork, CtrlNet
|
||||
|
||||
LOCK = threading.Lock()
|
||||
CMD_HIDE = True
|
||||
|
||||
|
||||
class DistributedServer(object):
|
||||
|
@ -60,12 +61,12 @@ class DistributedServer(object):
|
|||
try:
|
||||
if cwd is None:
|
||||
result = self.conn.run(
|
||||
cmd, hide=False, env=env, replace_env=replace_env
|
||||
cmd, hide=CMD_HIDE, env=env, replace_env=replace_env
|
||||
)
|
||||
else:
|
||||
with self.conn.cd(cwd):
|
||||
result = self.conn.run(
|
||||
cmd, hide=False, env=env, replace_env=replace_env
|
||||
cmd, hide=CMD_HIDE, env=env, replace_env=replace_env
|
||||
)
|
||||
return result.stdout.strip()
|
||||
except UnexpectedExit as e:
|
||||
|
|
Loading…
Add table
Reference in a new issue