Skip to content

Commit a930fe2

Browse files
committed
Cleaning up after an errant config file
1 parent 07b3f5c commit a930fe2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

features/steps/run_client.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,14 @@
6262
File.open(@config_file, "w") do |file|
6363
file.write(config_data)
6464
end
65+
66+
@cleanup_files << @config_file
6567

6668
@status = Chef::Mixin::Command.popen4("chef-client -c #{@config_file}") do |p, i, o, e|
6769
@stdout = o.gets(nil)
6870
@stderr = e.gets(nil)
6971
end
72+
7073

7174
end
7275

0 commit comments

Comments
 (0)