Commit a1dce22e authored by Matthias Pausch's avatar Matthias Pausch
Browse files

krb5.conf should have a newline at the end

parent 6cc5d351
......@@ -32,7 +32,7 @@ module Sys
end
file << "\n"
end
file.strip
return file.chop
end
def render_harry_config(config, key, value, indent, flags)
......
......@@ -6,4 +6,4 @@ description 'System Software configuration and maintenance'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
source_url 'https://github.com/GSI-HPC/sys-chef-cookbook'
issues_url 'https://github.com/GSI-HPC/sys-chef-cookbook/issues'
version '1.25.0'
version '1.25.1'
......@@ -140,7 +140,7 @@ describe 'sys::krb5' do
config << " wallet = {\n"
config << " wallet_port = 4373\n"
config << " wallet_server = wallet.example.com\n"
config << " }"
config << " }\n"
expect(chef_run).to create_template('/etc/krb5.conf').with_mode('0644')
expect(chef_run).to render_file("/etc/krb5.conf").with_content(config)
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment