mesh-config wakes only on a changed input and holds no value for a pull request (issue 1982; ADR 0681; A-490l) #708

Closed
mesh-tools wants to merge 6 commits from fix/1982-mesh-config-events into main
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 9d43fa4b24 - Show all commits
+2 -2
View File
@@ -289,12 +289,12 @@ var commands = []command{
does: "clear one of a module's config values on one node", allowed: []string{"node", "why"},
build: func(l line) (call, error) { return configChange(l, "clear") }},
{words: []string{"config"}, usage: "[list|set|clear|history|propose|proposals] [--module m] [--node n] [--key k] [--value v] [--why w]",
does: "the mesh's config values, at any level", allowed: []string{"module", "node", "key", "value", "why", "limit", "proposal", "pull", "clear"},
does: "the mesh's config values, at any level", allowed: []string{"module", "node", "key", "value", "why", "limit", "proposal", "clear"},
build: func(l line) (call, error) {
if len(l.pos) > 1 {
return call{}, usageErr("give at most one action")
}
a := pick(l, "module", "node", "key", "why", "proposal", "pull", "clear", "limit")
a := pick(l, "module", "node", "key", "why", "proposal", "clear", "limit")
if len(l.pos) == 1 {
a["action"] = l.pos[0]
}
@@ -173,6 +173,7 @@ func TestALineWithNoOwnerOrNotReadCallsNothingAndSaysWhy(t *testing.T) {
{"conditions --bogus x", 2, "--bogus is not a flag"},
{"settings set zsh {\"execute\":\"withhold\"} --node g14 --why x", 2, "set each key"},
{"healers --days soon", 2, "takes a number"},
{"config propose --pull novox/x#1", 2, "--pull is not a flag"},
{"frobnicate", 2, "is not a command"},
} {
got := console(t, nil)