Only clear tags in set-worker-tags when "null" is set as the value of the -tag flag. (#2434)
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user