Plugin#parameter_filter doesn't work properly with block argument
In plugin api for rex, we had
This didn't work, because the filter works only for non-nested params (which nic isn't).
Therefore, we needed to use block instead.
parameter_filter Nic::Interface do |ctx| ctx.permit :execution end
The problem is, we're using
which leads to the rules to loosing the saved block at the first call, and leads to the rules to not actually apply.