We now generate the new id inside the hook_new function. This is required because the hook_parse_cmdline function take now the id of the config as te first argument.
Signed-off-by: Jonatan Schlag jonatan.schlag@ipfire.org --- src/functions/functions.zone | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/functions/functions.zone b/src/functions/functions.zone index 941314d..34cc983 100644 --- a/src/functions/functions.zone +++ b/src/functions/functions.zone @@ -1410,16 +1410,13 @@ zone_config_settings_read() { }
zone_config_settings_write() { - assert [ $# -ge 2 ] + assert [ $# -eq 3 ]
local zone="${1}" local hook="${2}" local id=${3}
- if ! isset id; then - id=$(zone_config_get_new_id ${zone}) - log DEBUG "ID for the config is: ${id}" - fi + assert isinteger id
local args if function_exists "hook_check_config_settings"; then