[Bug 1388] New: Combining --terse with --json has no effect
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Sat Dec 7 12:39:56 CET 2019
https://bugzilla.netfilter.org/show_bug.cgi?id=1388
Bug ID: 1388
Summary: Combining --terse with --json has no effect
Product: nftables
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: nft
Assignee: pablo at netfilter.org
Reporter: kfm at plushkava.net
Given a loaded ruleset that contains at least one populated set, the following
bash program demonstrates that --terse has no effect when combined with the
--json option.
for opts in -s -t '-s -t'; do
printf 'opts = %s: ' "$opts"
if cmp -s <(nft -j list ruleset) <(nft -j $opts list ruleset); then
echo "same"
else
echo "different"
fi
done
Sample output:
opts = -s: different
opts = -t: same
opts = -s -t: different
My expectation is that the --terse option ensures that set elements are not
rendered, just as it does for the standard output format.
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20191207/d204789f/attachment.html>
More information about the netfilter-buglog
mailing list