mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
fix: Dont bind service class methods in declaration
This was causing a bug where the applications were cloned when restarting all of them. These clones did not carry over the binds, so when starting the containers back up, two different versions of `this` were being used. Change-type: patch Closes: #736 Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
parent
6f0728ba56
commit
16e102b3ba
@ -565,7 +565,7 @@ module.exports = class Service
|
||||
volumes[vol] = {}
|
||||
return { binds, volumes }
|
||||
|
||||
toContainerConfig: =>
|
||||
toContainerConfig: ->
|
||||
{ binds, volumes } = @getBindsAndVolumes()
|
||||
tmpfs = {}
|
||||
for dir in @tmpfs
|
||||
@ -651,7 +651,7 @@ module.exports = class Service
|
||||
return conf
|
||||
|
||||
# TODO: when we support network configuration properly, return endpointConfig: conf
|
||||
extraNetworksToJoin: =>
|
||||
extraNetworksToJoin: ->
|
||||
_.map _.pickBy(@networks, (conf, net) => net != @networkMode), (conf, net) ->
|
||||
return { name: net, endpointConfig: {} }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user