mmcli,output: skip printing empty value lists
E.g. we shouldn't print emergency numbers field if there is none available:
$ mmcli -i 0
-------------------------------
General | dbus path: /org/freedesktop/ModemManager1/SIM/0
-------------------------------
Properties | imsi: 901700000026890
| iccid: 8988211000000268907
| operator id: 90170
| operator name: 901 70
| emergency numbers:
This commit is contained in:
+1
-1
@@ -824,7 +824,7 @@ dump_output_human (void)
|
||||
|
||||
/* Ignore items without a value set */
|
||||
if ((single && (!single->value || !single->value[0])) ||
|
||||
(multiple && !multiple->values))
|
||||
(multiple && (!multiple->values || !g_strv_length (multiple->values))))
|
||||
continue;
|
||||
|
||||
/* Section change? */
|
||||
|
||||
Reference in New Issue
Block a user