def connected_masters():
 port = 4505
 config_port = __salt__['config.get']('publish_port')
 if config_port:
  port = config_port
 connected_masters_ips = _remote_port_tcp(port)
 return connected_masters_ips

def connected_masters ( ) : port = 4505 config_port = __salt__ [ 'config.get' ] ( 'publish_port' ) if config_port : port = config_port connected_masters_ips = _remote_port_tcp ( port ) return connected_masters_ips
return current connected masters .