Skip to content

Commit

Permalink
Merge pull request #610 from telefonicaid/fix/use_retries_and_retry_t…
Browse files Browse the repository at this point in the history
…ime_env_vars

use retries and retry_time env vars
  • Loading branch information
fgalan authored May 10, 2018
2 parents 6cb91ee + 82abee6 commit 62dc00e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Fix: IOTA_MONGO_RETRIES and IOTA_MONGO_RETRY_TIME env vars are now taken into account (previously there were ignored)
- ADD: log mongo error before raise alarm [#577]
- FIX Automatic device provisioning by means of Configuration Group fails due to a bug in findConfigurationGroup function (#544).
- FIX Static attributes seem not supported in Configuration Group provisioning (#550).
Expand Down
8 changes: 6 additions & 2 deletions lib/commonConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ function processEnvironmentVariables() {
'IOTA_MONGO_HOST',
'IOTA_MONGO_PORT',
'IOTA_MONGO_DB',
'IOTA_MONGO_REPLICASET'
'IOTA_MONGO_REPLICASET',
'IOTA_MONGO_RETRIES',
'IOTA_MONGO_RETRY_TIME'
],
iotamVariables = [
'IOTA_IOTAM_URL',
Expand All @@ -83,7 +85,9 @@ function processEnvironmentVariables() {
'IOTA_MONGO_HOST',
'IOTA_MONGO_PORT',
'IOTA_MONGO_DB',
'IOTA_MONGO_REPLICASET'
'IOTA_MONGO_REPLICASET',
'IOTA_MONGO_RETRIES',
'IOTA_MONGO_RETRY_TIME'
];

for (var i = 0; i < environmentVariables.length; i++) {
Expand Down

0 comments on commit 62dc00e

Please sign in to comment.