You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by "alb3rtobr (GitHub)" <gi...@apache.org> on 2019/12/12 16:30:14 UTC

[GitHub] [geode] alb3rtobr commented on issue #4429: GEODE-7550: Param to only list gw receivers or senders

Finally this is the only way I found to implement a consistent behavior:

The problem is that if the output of `list gateways --senders --receivers` is the same than `list gateways`, that means that `specifiedDefaultValue` and `unspecifiedDefaultValue` have to be `true` for both parameters. But in that case, when executing `list gateways --senders` or `list gateways --receivers` both parameters will be `true`.

So with the last commit:
* `list gateways --senders --receivers` and `list gateways --senders=true --receivers=true` will return error
* `list gateways --senders=false --receivers=false` and any combination using "one true and one false" will be like running `list gateways`.
* `list gateways --senders` and `list gateways --senders=true` will show only senders.
* `list gateways --receivers` and `list gateways --receivers=true` will show only receivers.

[ Full content available at: https://github.com/apache/geode/pull/4429 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org