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:
Philipp Born 2018-04-04 13:04:17 +02:00 committed by Erik Johnson
parent ea56778e03
commit ee437f7cbf
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -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')