Fix: Duplicated exports.connectivityCheck in utils.coffee

This commit is contained in:
Praneeth Bodduluri 2015-12-10 20:30:04 +05:30
parent 3c8dce9bf4
commit 89abff57f6
2 changed files with 2 additions and 2 deletions

View File

@ -313,7 +313,7 @@ specialActionEnvVars =
'RESIN_SUPERVISOR_HANDOVER_TIMEOUT': null
'RESIN_SUPERVISOR_OVERRIDE_LOCK': null
'RESIN_SUPERVISOR_VPN_CONTROL': utils.vpnControl
'RESIN_SUPERVISOR_CONNECTIVITY_CHECK': utils.connectivityCheck
'RESIN_SUPERVISOR_CONNECTIVITY_CHECK': utils.enableConnectivityCheck
'RESIN_SUPERVISOR_POLL_INTERVAL': apiPollInterval
'RESIN_SUPERVISOR_LOG_CONTROL': utils.resinLogControl

View File

@ -141,7 +141,7 @@ exports.extendEnvVars = (env, uuid) ->
return Promise.props(newEnv)
# Callback function to enable/disable tcp pings
exports.connectivityCheck = (val) ->
exports.enableConnectivityCheck = (val) ->
bool = val is 'false'
disableCheck(bool)
console.log("Connectivity check enabled: #{not bool}")