mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 22:10:14 +01:00
cli: let _print_fill() hide option if NM_META_ACCESSOR_GET_OUT_FLAGS_HIDE is set
Regardless, whether the option is also currently the default.
(cherry picked from commit 69eca25391)
This commit is contained in:
parent
fd37111986
commit
fc582312f7
1 changed files with 3 additions and 3 deletions
|
|
@ -1078,9 +1078,9 @@ _print_fill (const NmcConfig *nmc_config,
|
|||
|
||||
nm_assert (!to_free || value == to_free);
|
||||
|
||||
if ( is_default
|
||||
&& ( nmc_config->overview
|
||||
|| NM_FLAGS_HAS (text_out_flags, NM_META_ACCESSOR_GET_OUT_FLAGS_HIDE))) {
|
||||
if ( ( is_default
|
||||
&& nmc_config->overview)
|
||||
|| NM_FLAGS_HAS (text_out_flags, NM_META_ACCESSOR_GET_OUT_FLAGS_HIDE)) {
|
||||
/* don't mark the entry for display. This is to shorten the output in case
|
||||
* the property is the default value. But we only do that, if the user
|
||||
* opts in to this behavior (-overview), or of the property marks itself
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue