summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Cardace <acardace@redhat.com>2020-04-15 10:15:52 +0200
committerAntonio Cardace <acardace@redhat.com>2020-04-16 10:52:46 +0200
commita5916de5990f9ddd1e366fb74ba96702734f56b6 (patch)
tree0fc0d029c1e21ddd1777a546dd1011f5ef28e064
parent3af07fd4157c02690b96d99fa8d2b27392e27b2e (diff)
downloadNetworkManager-ac/cli_hide_if_default.tar.gz
ethtool: refactor how options are hidden if defaultac/cli_hide_if_default
Just use the new flag NMMetaPropertyInfo.
-rw-r--r--clients/common/nm-meta-setting-desc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c
index c2f6b71769..c821c21342 100644
--- a/clients/common/nm-meta-setting-desc.c
+++ b/clients/common/nm-meta-setting-desc.c
@@ -4102,7 +4102,6 @@ _get_fcn_ethtool (ARGS_GET_FCN)
else {
s = NULL;
NM_SET_OUT (out_is_default, TRUE);
- *out_flags |= NM_META_ACCESSOR_GET_OUT_FLAGS_HIDE;
}
if (s && get_type == NM_META_ACCESSOR_GET_TYPE_PRETTY)
@@ -5320,6 +5319,7 @@ static const NMMetaPropertyInfo *const property_infos_DCB[] = {
#define PROPERTY_INFO_ETHTOOL(xname) \
PROPERTY_INFO (NM_ETHTOOL_OPTNAME_##xname, NULL, \
.property_type = &_pt_ethtool, \
+ .hide_if_default = TRUE, \
.property_typ_data = DEFINE_PROPERTY_TYP_DATA_SUBTYPE (ethtool, \
.ethtool_id = NM_ETHTOOL_ID_##xname, \
), \