Skip to content

Commit 00dcbbe

Browse files
committed
Fix var scoping error that was causing Chef data to change oddly in multi-VM setups
1 parent da6fee2 commit 00dcbbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
145145
# use a different name to pass it in as node data.
146146
run_list = chef_json.delete 'run_list'
147147
chef_json['madscience_run_list'] = run_list
148-
chef.json = chef_json
148+
chef.json = chef_json.dup # Don't just assign, var changes in loop
149149
chef.run_list = run_list
150150
end
151151

0 commit comments

Comments
 (0)