From fc36aaf45ddb7b8f1dcdcbcd65b02e8db434f97a Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Wed, 26 Jul 2017 10:44:39 +0200 Subject: [PATCH] zone: config list print also hids Signed-off-by: Jonatan Schlag Signed-off-by: Michael Tremer --- src/functions/functions.zone | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/functions/functions.zone b/src/functions/functions.zone index 3e48cb6d..a3ca029c 100644 --- a/src/functions/functions.zone +++ b/src/functions/functions.zone @@ -643,21 +643,22 @@ zone_config_list() { assert isset zone # Print a nice header - local format="%-3s %-20s" - print "${format}" "ID" "HOOK" + local format="%-3s %-20s %-20s" + print "${format}" "ID" "HOOK" "HID" local config local hook local id + local hid # Print for all config: # id and hook - # TODO: Add hids here for config in $(zone_configs_list "${zone}"); do id=${config##*.} hook=$(zone_config_get_hook "${zone}" "${config}") + hid=$(zone_config_get_hid "${zone}" "${config}") assert isset hook - print "${format}" "${id}" "${hook}" + print "${format}" "${id}" "${hook}" "${hid}" done } -- 2.47.3