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

Adding the ability to change regex match for $section in inifile #159

Merged
merged 1 commit into from
Apr 21, 2015

Conversation

WhatsARanjit
Copy link
Contributor

https://tickets.puppetlabs.com/browse/MODULES-1940

We have a customer that needs to manage a file on AIX. They tell us that AIX's configuration files commonly follow the format:

key:
    param1 = value1
    param2 = value2

This file is basically an inifile, but instead of a section header of

[key]

...it is

key:

The regex used to match section names is hard-coded. It would be great to specify the pattern to match section names.

…ate files with sections that don't follow [section_name] format. AIX for example uses section_name: format.
@tphoney
Copy link
Contributor

tphoney commented Apr 17, 2015

It would be great if you could add an acceptance test for this. Thanks for the work you have put in.

@WhatsARanjit
Copy link
Contributor Author

@tphoney Yeah, I can do that. Also, I'll update the README to document the new attributes.

@tphoney
Copy link
Contributor

tphoney commented Apr 17, 2015

fantastic ! +!

@WhatsARanjit
Copy link
Contributor Author

@tphoney Added documentation and unit tests.

@tphoney
Copy link
Contributor

tphoney commented Apr 20, 2015

Great work, could you please squash your commits. 8 commits looks a little ugly in the git history.

Once again thanks.

@WhatsARanjit
Copy link
Contributor Author

Squashed into one commit.

@tphoney
Copy link
Contributor

tphoney commented Apr 20, 2015

@WhatsARanjit thanks

tphoney added a commit that referenced this pull request Apr 21, 2015
Adding the ability to change regex match for $section in inifile
@tphoney tphoney merged commit 033722a into puppetlabs:master Apr 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants