Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Vagrantfile after #374 #394

Merged
merged 3 commits into from Jul 12, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Fix Vagrantfile to handle multiple env variables.

Environment variables are now passed as a list,
instead of a string.
  • Loading branch information
aneeshusa committed Jul 12, 2016
commit 6fbc0f9fafb004ff331044abf95f629d49d943c4
@@ -58,7 +58,8 @@ matrix:
language: python
python: 3.5
# Not a Salt node, runs test suite instead
- env: SALT_NODE_ID=test
- env:
- SALT_NODE_ID=test
os: linux
sudo: required
dist: trusty
@@ -1,7 +1,7 @@
require 'yaml'

def extract_id(env)
id = env.split.map do |env_var|
id = env.map do |env_var|
env_var[/^SALT_NODE_ID=(?<node_id>.+)$/, "node_id"]
end.compact
id[0]
@@ -37,7 +37,7 @@ Vagrant.configure(2) do |config|
elsif node_config[:id] != 'test'
node_config
end
end.compact.each do |node|
end.compact.uniq.each do |node|
config.vm.define node[:id] do |machine|
machine.vm.box = node[:box]
machine.vm.provider :virtualbox do |vbox|
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.