Make image filesystems attribute can work

Closes-Bug: #1474726

Change-Id: I942d7972ae7e0796285e87d81691d48f8e292994
This commit is contained in:
Lan Qi song 2015-07-15 16:24:53 +08:00
parent f78d153935
commit e8c02f84f3
2 changed files with 4 additions and 1 deletions

View File

@ -946,6 +946,9 @@ describe 'openstack-compute::nova-common' do
].each do |line|
expect(chef_run).to render_config_file(file.name).with_section_content('image_file_url:another_fs', line)
end
line = 'filesystems=some_fs,another_fs'
expect(chef_run).to render_config_file(file.name).with_section_content('image_file_url', line)
end
end

View File

@ -939,7 +939,7 @@ rabbit_port=<%= node["openstack"]["mq"]["compute"]["rabbit"]["port"] %>
# Image file url support, add new sections here
<% if node['openstack']['compute']['image']['filesystems'] -%>
[image_file_url]
filesystems=node['openstack']['compute']['image']['filesystems'].join(',')
filesystems=<%= node['openstack']['compute']['image']['filesystems'].keys.join(',') %>
<% node['openstack']['compute']['image']['filesystems'].each do |section, opts| %>
[image_file_url:<%= section %>]
<% opts.each do |key, value| %>