From f3980d7d838951bba3ef1ade655e9df6c720f6e3 Mon Sep 17 00:00:00 2001 From: Ken Crowell Date: Mon, 9 Oct 2017 12:18:25 -0300 Subject: [PATCH] Fix manage.present to show lost minions Fixes #38367 and and #43936. --- salt/utils/minions.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/salt/utils/minions.py b/salt/utils/minions.py index 261022d303..7e8f5e685f 100644 --- a/salt/utils/minions.py +++ b/salt/utils/minions.py @@ -578,10 +578,9 @@ class CkMinions(object): if search is None: return minions addrs = salt.utils.network.local_port_tcp(int(self.opts['publish_port'])) - if '127.0.0.1' in addrs or '0.0.0.0' in addrs: - # Add in possible ip addresses of a locally connected minion + if '127.0.0.1' in addrs: + # Add in the address of a possible locally-connected minion. addrs.discard('127.0.0.1') - addrs.discard('0.0.0.0') addrs.update(set(salt.utils.network.ip_addrs(include_loopback=include_localhost))) if subset: search = subset