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:
CameronDiver 2018-08-30 11:11:20 -07:00 committed by GitHub
commit 1336e3f91f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {} }