Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inisettings resolve deprecation: use namespaced create_ini_settings function #497

Merged
merged 2 commits into from Feb 13, 2023

Conversation

atsonkov
Copy link
Contributor

@atsonkov atsonkov commented Feb 9, 2023

Pull Request (PR) description

Change the (now deprecated) create_ini_settings function to its namespaced alternative inifile::create_ini_settings and increase the minimal supported version of inifile dependency, to the first version where inifile::create_ini_settings was introduced.

This Pull Request (PR) fixes the following issues

Fixes #496

inifile 4.1 adds inifile::create_ini_settings, and version 4.2 deprecates the non-namespace version:

```
DEPRECATED. Use the namespaced function inifile::create_ini_settings instead.
```

https://forge.puppet.com/modules/puppetlabs/inifile/4.2.0/reference#create_ini_settings
In order to support inifile greater than 4.2, we have to change from create_ini_settings to inifile::create_ini_settings (which was introduced in 4.1.0), so 4.1.0 would become the minimal supported version.
Copy link
Member

@smortex smortex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kenyon kenyon changed the title Inisettings resolve deprication Inisettings resolve deprecation Feb 13, 2023
@kenyon kenyon changed the title Inisettings resolve deprecation Inisettings resolve deprecation: use namespaced create_ini_settings function Feb 13, 2023
@kenyon kenyon merged commit 03bca90 into voxpupuli:master Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RSpec error if used with inifile >= 4.2.0
3 participants