apply-default-node.lua: re-instate the "set default node" debug log msg
This commit is contained in:

committed by
Julian Bouzas

parent
82c8269381
commit
000a869035
@@ -24,8 +24,12 @@ 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
|
||||||
Json.Object { ["name"] = selected_node }:to_string ())
|
|
||||||
|
Log.info ("set default node for " .. key .. " " .. selected_node)
|
||||||
|
|
||||||
|
metadata:set (0, key, "Spa:String:JSON",
|
||||||
|
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)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user