Merge pull request #24474 from mavenugo/fix-24452

swarmkit expects network-id for as target
This commit is contained in:
Vincent Demeester 2016-07-11 20:59:38 +02:00 committed by GitHub
commit 36f3d4af23
1 changed files with 7 additions and 0 deletions

View File

@ -725,6 +725,13 @@ func (c *Cluster) UpdateService(serviceID string, version uint64, spec types.Ser
return c.errNoManager()
}
ctx := c.getRequestContext()
err := populateNetworkID(ctx, c.client, &spec)
if err != nil {
return err
}
serviceSpec, err := convert.ServiceSpecToGRPC(spec)
if err != nil {
return err