mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-01 19:46:44 +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] = {}
|
volumes[vol] = {}
|
||||||
return { binds, volumes }
|
return { binds, volumes }
|
||||||
|
|
||||||
toContainerConfig: =>
|
toContainerConfig: ->
|
||||||
{ binds, volumes } = @getBindsAndVolumes()
|
{ binds, volumes } = @getBindsAndVolumes()
|
||||||
tmpfs = {}
|
tmpfs = {}
|
||||||
for dir in @tmpfs
|
for dir in @tmpfs
|
||||||
@ -651,7 +651,7 @@ module.exports = class Service
|
|||||||
return conf
|
return conf
|
||||||
|
|
||||||
# TODO: when we support network configuration properly, return endpointConfig: conf
|
# TODO: when we support network configuration properly, return endpointConfig: conf
|
||||||
extraNetworksToJoin: =>
|
extraNetworksToJoin: ->
|
||||||
_.map _.pickBy(@networks, (conf, net) => net != @networkMode), (conf, net) ->
|
_.map _.pickBy(@networks, (conf, net) => net != @networkMode), (conf, net) ->
|
||||||
return { name: net, endpointConfig: {} }
|
return { name: net, endpointConfig: {} }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user