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

(MODULES-2071) Patch file_line provider to use multiple with after #463

Merged
merged 1 commit into from
May 29, 2015

Conversation

rmaika
Copy link
Contributor

@rmaika rmaika commented May 29, 2015

Without this, file_line resource without the match parameter but with the after param will throw an error if there are multiple matches for the after expression. This patch creates the handling for the multiple parameter in handle_create_with_after. This allows you to add a line after the after expression if it appears at multiple points in a file without specifying the match param.

Updated reference to file_line in the README to reflect that the multiple parameter can be set when using after and/or match as the matching regex.

…e parameter multiple in function handle_create_with_after

Without this, file_line resource without the `match` parameter but with the `after` param will throw an error if there are multiple matches for the after expression. This patch creates the handling for the `multiple` parameter in handle_create_with_after. This allows you to add a line after the `after` expression if it appears at multiple points in a file.

Updated reference to `file_line` in the README to reflect that the multiple parameter can be set when using `after` and/or `match` as the matching regex.
@puppet-community-ci
Copy link

The result of the test was: PASS
Details at http://planck.nibalizer.com/buildlogs/puppetlabs+puppetlabs-stdlib+463+1432875174+PASS

I am a beta ci bot. I am probably lying to you.
You can contact nibalizer for more details.

@DavidS
Copy link
Contributor

DavidS commented May 29, 2015

Hi @rmaika , thank you for your contribution!

DavidS added a commit that referenced this pull request May 29, 2015
 (MODULES-2071) Patch file_line provider to use multiple with after
@DavidS DavidS merged commit 4a8c0a5 into puppetlabs:master May 29, 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.

4 participants