Commit e9e53f4c4a1593e67b9a757fece8754a747702da

Authored by Adhidarma Hadiwinoto
1 parent 34405bf672
Exists in master

PULL support config.locations

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -105,6 +105,7 @@ function pullTask() {
105 105 const body_or_qs = {
106 106 handler: config.handler_name,
107 107 products: config.products.join(','),
  108 + locations: config.locations && config.locations.length ? config.locations.join(',') : 'ALL',
108 109 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,
109 110 api_url: (config && config.apiserver && config.apiserver.apikey && config.apiserver.url) ? config.apiserver.url : null,
110 111 cp_url: (config && config.control_panel && config.control_panel.url) ? config.control_panel.url : null,