This effectively drops the many Vagrant.configure blocks and keep only the
main one. Then, it renames the main "config" variable into "cfg" and keep the
local variable "config" for each remaining local vm declaration.
Details
Details
- Reviewers
olasd - Group Reviewers
Reviewers - Commits
- rSENV11693274f0ef: Vagrantfile: Avoid extra blocks & shadowing `config` variable
vagrant destroy test; vagrant up test is fine
Diff Detail
Diff Detail
- Repository
- rSENV Puppet Environment
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 15705 Build 24181: arc lint + arc unit
Event Timeline
Comment Actions
Rather than cfg, please call the new variable vagrant_config or global_config or anything clearer. I'd rather have a shadowed single variable name than two variable names that can be confused :)
(I'm not sure what's the point of merging the Vagrant.configure blocks but it's not like it hurts anything)
Comment Actions
ack on the naming, it will be clearer indeed.
There is not much point indeed.
Besides avoiding the clash and decrease a bit the declaration.