summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/meta.t.payload
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-07-18 12:33:09 +0200
committerPhil Sutter <phil@nwl.cc>2023-07-19 12:42:07 +0200
commitae1f506b5b0925dfe07215876f010dd087785ca9 (patch)
tree26c17fc45fefb2814dd332361bb72d34075cb4f4 /tests/py/inet/meta.t.payload
parent574fa55c2e70449887c7714d7b043f4e8b6d28da (diff)
py: return boolean value from Nftables.__[gs]et_output_flag()
The callers of __get_output_flag() and __set_output_flag(), for example get_reversedns_output(), are all documented to return a "boolean" value. Instead, they returned the underlying, non-zero flags value. That number is not obviously useful to the caller, because there is no API so that the caller could do anything with it (except evaluating it in a boolean context). Adjust that, to match the documentation. The alternative would be to update the documentation, to indicate that the functions return a non-zero integer when the flag is set. That would preserve the previous behavior and maybe the number could be useful somehow(?). Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/py/inet/meta.t.payload')
0 files changed, 0 insertions, 0 deletions