Debian api_uwsgi_config: Switch to :ini_setting

On each puppet run, I'm seeing:
value changed ['12'] to '12' (corrective)

Therefore, this patch switches from :openstackconfig to :ini_setting
to make the 2nd run not changing anything.

Change-Id: I56a9d9534be8aaee74b1da0c7633359578c74769
This commit is contained in:
Thomas Goirand 2021-04-20 18:21:55 +02:00
parent 2c612803f2
commit 924dce105a
2 changed files with 3 additions and 14 deletions

View File

@ -1,6 +1,6 @@
Puppet::Type.type(:placement_api_uwsgi_config).provide(
:openstackconfig,
:parent => Puppet::Type.type(:openstack_config).provider(:ruby)
:ini_setting,
:parent => Puppet::Type.type(:openstack_config).provider(:ini_setting)
) do
def self.file_path

View File

@ -14,19 +14,8 @@ $LOAD_PATH.push(
'inifile',
'lib')
)
$LOAD_PATH.push(
File.join(
File.dirname(__FILE__),
'..',
'..',
'..',
'fixtures',
'modules',
'openstacklib',
'lib')
)
require 'spec_helper'
provider_class = Puppet::Type.type(:placement_api_uwsgi_config).provider(:openstackconfig)
provider_class = Puppet::Type.type(:placement_api_uwsgi_config).provider(:ini_setting)
describe provider_class do
it 'should default to the default setting when no other one is specified' do