Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
use correct registry (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
leggsimon authored Sep 19, 2017
1 parent 5fe31ec commit 3176212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var fetchres = require('fetchres');

const DEFAULT_REGISTRY_URI = 'https://next-registry.ft.com/v2/';

const getServiceData = source => fetch(DEFAULT_REGISTRY_URI)
const getServiceData = (source, registry) => fetch(registry)
.then(response => response.json())
.then(json => {
const serviceData = findService(json, normalizeName(source));
Expand Down Expand Up @@ -88,7 +88,7 @@ function task (opts) {
.then(function (keys) {
authorizedPostHeaders.Authorization = 'Bearer ' + keys[0];

return getServiceData(source).then(serviceData => Promise.all([
return getServiceData(source, opts.registry).then(serviceData => Promise.all([
opts.vault ? fetchFromVault(source, target, serviceData) : fetchFromNextConfigVars(source, target, keys[1]),
fetch('https://api.heroku.com/apps/' + target + '/config-vars', { headers: authorizedPostHeaders })
.then(fetchres.json)
Expand Down

0 comments on commit 3176212

Please sign in to comment.