Don't pass empty labels (looks weird to POST with a label set)

This commit is contained in:
Daniel Smith 2014-09-19 16:04:55 -07:00
parent e25171969b
commit 4aecdce258

View File

@ -291,9 +291,10 @@ func executeAPIRequest(method string, c *client.Client) bool {
return false return false
} }
r := c.Verb(verb). r := c.Verb(verb).Path(path)
Path(path). if len(*selector) > 0 {
ParseSelectorParam("labels", *selector) r.ParseSelectorParam("labels", *selector)
}
if setBody { if setBody {
if version != 0 { if version != 0 {
data := readConfig(storage) data := readConfig(storage)