Commit a684ce0c561a96dcc2d90aa630d45ac505c9170d
1 parent
31729512e3
Exists in
master
PULL: default value on unknown config.products
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
gateway/pull.js
... | ... | @@ -106,7 +106,7 @@ function pullTask() { |
106 | 106 | |
107 | 107 | const body_or_qs = { |
108 | 108 | handler: config.handler_name, |
109 | - products: config.products.join(','), | |
109 | + products: (config.products || []).join(','), | |
110 | 110 | locations: config.locations && config.locations.length ? config.locations.join(',') : 'ALL', |
111 | 111 | advice_url: (config && config.push_server && config.push_server.apikey && config.push_server.advice && config.push_server.advice.url && config.push_server.advice.port) ? config.push_server.advice.url : null, |
112 | 112 | api_url: (config && config.apiserver && config.apiserver.apikey && config.apiserver.url) ? config.apiserver.url : null, |