Skip to content

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

Merged
DavidS merged 1 commit intopuppetlabs:masterfrom
CENGN:fix/master/file_line_multiple_after
May 29, 2015
Merged

(MODULES-2071) Patch file_line provider to use multiple with after#463
DavidS merged 1 commit intopuppetlabs:masterfrom
CENGN:fix/master/file_line_multiple_after

Conversation

@rmaika
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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