Skip to content

Commit

Permalink
Correctly evaluate the Puppetfile in pin_modules
Browse files Browse the repository at this point in the history
For some reason I changed it to eval instead of instance_eval and this
broke.

Fixes: 24a81c7 ("Factor out FakePuppetfile so it can be tested in rspec")
  • Loading branch information
ekohl committed May 21, 2024
1 parent f629938 commit 951a2be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ else
filename = 'Puppetfile'

fake = FakePuppetfile.new
fake.instance_eval { eval(File.read(filename), filename, 1) }
fake.instance_eval { instance_eval(File.read(filename), filename, 1) }

File.open(filename, 'w') do |file|
fake.content do |line|
Expand Down

0 comments on commit 951a2be

Please sign in to comment.