Skip to content

Commit

Permalink
copy networks
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbailey committed Jan 7, 2021
1 parent 6bca902 commit a481ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ func inplaceUpdate(ctx Context, eval *structs.Evaluation, job *structs.Job,
Shared: structs.AllocatedSharedResources{
DiskMB: int64(update.TaskGroup.EphemeralDisk.SizeMB),
Ports: update.Alloc.AllocatedResources.Shared.Ports,
Networks: update.Alloc.AllocatedResources.Shared.Networks,
Networks: update.Alloc.AllocatedResources.Shared.Networks.Copy(),
},
}
newAlloc.Metrics = ctx.Metrics()
Expand Down

0 comments on commit a481ae0

Please sign in to comment.