apply-default-node.lua: re-instate the "set default node" debug log msg

This commit is contained in:
Ashok Sidipotu
2023-01-18 10:58:03 +05:30
committed by Julian Bouzas
parent 82c8269381
commit 000a869035

View File

@@ -24,7 +24,11 @@ SimpleEventHook {
local metadata = om:lookup { Constraint { "metadata.name", "=", "default" } } local metadata = om:lookup { Constraint { "metadata.name", "=", "default" } }
if selected_node then if selected_node then
metadata:set (0, "default." .. def_node_type, "Spa:String:JSON", local key = "default." .. def_node_type
Log.info ("set default node for " .. key .. " " .. selected_node)
metadata:set (0, key, "Spa:String:JSON",
Json.Object { ["name"] = selected_node }:to_string ()) Json.Object { ["name"] = selected_node }:to_string ())
else else
metadata:set (0, "default." .. def_node_type, nil, nil) metadata:set (0, "default." .. def_node_type, nil, nil)