From 951a2be4126a62f3af8cf162c65e3a5103ff8943 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Tue, 21 May 2024 15:10:38 +0200 Subject: [PATCH] Correctly evaluate the Puppetfile in pin_modules For some reason I changed it to eval instead of instance_eval and this broke. Fixes: 24a81c701f37 ("Factor out FakePuppetfile so it can be tested in rspec") --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index fc18fbe0..de770199 100644 --- a/Rakefile +++ b/Rakefile @@ -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|