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,7 +24,11 @@ SimpleEventHook {
|
||||
local metadata = om:lookup { Constraint { "metadata.name", "=", "default" } }
|
||||
|
||||
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 ())
|
||||
else
|
||||
metadata:set (0, "default." .. def_node_type, nil, nil)
|
||||
|
Reference in New Issue
Block a user