Only clear tags in set-worker-tags when "null" is set as the value of the -tag flag. (#2434)

This commit is contained in:
Todd authored and GitHub committed 2022-09-08 11:15:03 -07:00
1 parent 18dff62b7b
commit 0b942f4493
1 file changed
+1 -1
+1 -1
View File
@@ -130,7 +130,7 @@ func extraFlagsHandlingFuncImpl(c *Command, _ *base.FlagSets, opts *[]workers.Op
c.UI.Error("No tags supplied via -tag")
return false
case 1:
if c.FlagTags["null"] == nil {
if v, found := c.FlagTags["null"]; found && v == nil {
c.FlagTags = nil
}
}