choria-io / mcorpc-ruby-support

Support libraries to enable Ruby agents and clients to communicate with the Choria Server
https://choria.io/
Apache License 2.0
1 stars 8 forks source link

Ensure batch mode correctly configures direct mode #175

Closed ripienaar closed 3 years ago

ripienaar commented 3 years ago

Direct mode should clear all filters other than agent from the node, batch mode never did this - generally that's fine the direct nodes need to make the file anyway.

But when combined with choria discovery method -I pql:.... filter that sends an entirely invalid identity filter to the fleet nodes and all ignores it.

Message#type= resets the filter when :direct_request is set, so we need to set that after setting discovered nodes.

Discovered via https://github.com/choria-io/general/discussions/21