mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-29 18:18:52 +00:00
Merge pull request #737 from resin-io/736-device-name-at-init-restart-all
fix: Dont bind service class methods in declaration
This commit is contained in:
commit
1336e3f91f
@ -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