mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
fixed top function which was broken since commit 002aa88a97
``` 2018-04-04 12:49:51,312 [salt.daemons.masterapi:540 ][ERROR ][11108] Top function ext_nodes failed with error 'int' object has no attribute 'communicate' for minion random.system.local ```
This commit is contained in:
parent
ea56778e03
commit
ee437f7cbf
@ -80,7 +80,7 @@ def top(**kwargs):
|
|||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
cmd,
|
cmd,
|
||||||
shell=True,
|
shell=True,
|
||||||
stdout=subprocess.PIPE.communicate()[0])
|
stdout=subprocess.PIPE).communicate()[0]
|
||||||
)
|
)
|
||||||
if not ndata:
|
if not ndata:
|
||||||
log.info('master_tops ext_nodes call did not return any data')
|
log.info('master_tops ext_nodes call did not return any data')
|
||||||
|
Loading…
Reference in New Issue
Block a user