Merge pull request #24474 from mavenugo/fix-24452
swarmkit expects network-id for as target
This commit is contained in:
commit
36f3d4af23
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue