Skip to content

Commit 2d08c55

Browse files
Added reading of the file
Signed-off-by: Russell Seymour <[email protected]>
1 parent 4540939 commit 2d08c55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbooks/camsa/recipes/chefserver.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
variables({
2929
integration: lazy {
3030
if ::File.exist?(::File.join(node['camsa']['chefserver']['dir']['config'], 'datacollector.rb')) do
31-
::File.join(node['camsa']['chefserver']['dir']['config'], 'datacollector.rb')
31+
::IO.read(::File.join(node['camsa']['chefserver']['dir']['config'], 'datacollector.rb'))
3232
else
3333
""
3434
end
3535
},
3636
certificate: lazy {
3737
if ::File.exist?(::File.join(node['camsa']['chefserver']['dir']['config'], 'chefssl.rb')) do
38-
::File.join(node['camsa']['chefserver']['dir']['config'], 'chefssl.rb')
38+
::IO.read()::File.join(node['camsa']['chefserver']['dir']['config'], 'chefssl.rb'))
3939
else
4040
""
4141
end

0 commit comments

Comments
 (0)