Skip to content

Commit

Permalink
Treat allowedValues.versions as an array
Browse files Browse the repository at this point in the history
This commit changes the handling of allowedValues.versions from an
object with version keys, to an array of version values.
  • Loading branch information
russcam committed Apr 20, 2018
1 parent 571c3b5 commit 82e9632
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build/tasks/arm-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ var bootstrapTest = (t, defaultVersion) =>

var bootstrap = (cb) => {
var allowedValues = require('../allowedValues.json');
var versions = _.keys(allowedValues.versions);
var defaultVersion = _.last(versions);
var defaultVersion = _.last(allowedValues.versions);
git.branch(function (branch) {
artifactsBaseUrl = "https://raw.githubusercontent.com/elastic/azure-marketplace/"+ branch + "/src";
templateUri = artifactsBaseUrl + "/mainTemplate.json";
Expand Down Expand Up @@ -110,7 +109,7 @@ var bailOut = (error, rg) => {
if (!error) return;
if (!rg) log(error)
else log("resourcegroup: " + rg + " - " + error)

var cb = () => logout(() => { throw error; })

var groups = _.valuesIn(armTests).map(a=>a.resourceGroup);
Expand Down

0 comments on commit 82e9632

Please sign in to comment.