diff --git a/spec/classes/collectd_plugin_ovs_stats_spec.rb b/spec/classes/collectd_plugin_ovs_stats_spec.rb index cf2c8bbf4..1424e389c 100644 --- a/spec/classes/collectd_plugin_ovs_stats_spec.rb +++ b/spec/classes/collectd_plugin_ovs_stats_spec.rb @@ -26,7 +26,7 @@ it 'will create config which will contain port configuration' do is_expected.to contain_file('ovs_stats.load').with( - content: %r{Port 666} + content: %r{Port "666"} ) end diff --git a/templates/plugin/ovs_stats.conf.erb b/templates/plugin/ovs_stats.conf.erb index 399021dbf..27b4415df 100644 --- a/templates/plugin/ovs_stats.conf.erb +++ b/templates/plugin/ovs_stats.conf.erb @@ -1,6 +1,6 @@ <%- if @port %> - Port <%= @port %> + Port "<%= @port %>" <%- end -%> <%- if @address %> Address "<%= @address %>"