mirror of https://github.com/k3s-io/k3s
Don't pass empty labels (looks weird to POST with a label set)
parent
e25171969b
commit
4aecdce258
|
@ -291,9 +291,10 @@ func executeAPIRequest(method string, c *client.Client) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
r := c.Verb(verb).
|
||||
Path(path).
|
||||
ParseSelectorParam("labels", *selector)
|
||||
r := c.Verb(verb).Path(path)
|
||||
if len(*selector) > 0 {
|
||||
r.ParseSelectorParam("labels", *selector)
|
||||
}
|
||||
if setBody {
|
||||
if version != 0 {
|
||||
data := readConfig(storage)
|
||||
|
|
Loading…
Reference in New Issue