mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #43994 from oeuftete/fix-manage-runner-presence
Fix manage.present to show lost minions
This commit is contained in:
commit
07db6a3d8b
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue