You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This return if the value is present, not if the value is true or false!
if you set the value to false, this returns true, so the query is send with recurse = true
Basically, DeleteOptions#isRecurse returns true when the Optional<Boolean> returned by getRecurse() is present, which means it returns true for both Optional<Boolean.TRUE>andOptional<FALSE>. Clearly it should actually test the value if the Optional contains one.
This is from the original consul-client issues list: Recurse to false in delete options not working
Basically,
DeleteOptions#isRecurse
returns true when theOptional<Boolean>
returned bygetRecurse()
is present, which means it returns true for bothOptional<Boolean.TRUE>
andOptional<FALSE>
. Clearly it should actually test the value if theOptional
contains one.Also see #210
The text was updated successfully, but these errors were encountered: