From ee437f7cbf551c0ea2c49bac5220dcc9d0e6b086 Mon Sep 17 00:00:00 2001 From: Philipp Born Date: Wed, 4 Apr 2018 13:04:17 +0200 Subject: [PATCH] fixed top function which was broken since commit 002aa88a97e ``` 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 ``` --- salt/tops/ext_nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/tops/ext_nodes.py b/salt/tops/ext_nodes.py index d12fdb93f8..c7dea5f490 100644 --- a/salt/tops/ext_nodes.py +++ b/salt/tops/ext_nodes.py @@ -80,7 +80,7 @@ def top(**kwargs): subprocess.Popen( cmd, shell=True, - stdout=subprocess.PIPE.communicate()[0]) + stdout=subprocess.PIPE).communicate()[0] ) if not ndata: log.info('master_tops ext_nodes call did not return any data')