]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/header-config
Fix zone_config_check_same_setting
[people/ms/network.git] / src / header-config
index 141d52b3c233371fa90d686d2e70912007b3dba5..4458eaa94862472c93d512520f95194a2733b1da 100644 (file)
@@ -23,8 +23,12 @@ hook_new() {
        local zone="${1}"
        shift
 
+       local id=$(zone_config_get_new_id ${zone})
+       log DEBUG "ID for the config is: ${id}"
+
        # Parse command line arguments
-       if ! hook_parse_cmdline "$@"; then
+       if ! hook_parse_cmdline "${id}" "$@"; then
+               # Return an error if the parsing of the cmd line fails
                return ${EXIT_ERROR}
        fi
 
@@ -68,7 +72,7 @@ hook_edit() {
                return ${EXIT_ERROR}
        fi
 
-       if ! hook_parse_cmdline "$@"; then
+       if ! hook_parse_cmdline "${id}" "$@"; then
                # Return an error if the parsing of the cmd line fails
                return ${EXIT_ERROR}
        fi