Skip to content

implement #11017 - make file_line type ensurable#36

Merged
slippycheeze merged 1 commit intopuppetlabs:masterfrom
duritong:tickets/11017
Feb 9, 2012
Merged

implement #11017 - make file_line type ensurable#36
slippycheeze merged 1 commit intopuppetlabs:masterfrom
duritong:tickets/11017

Conversation

@duritong
Copy link
Copy Markdown
Contributor

@duritong duritong commented Feb 9, 2012

  • Implement a simple destroy method.
  • Add tests for it
  • Refactor code, so file is actually read only once. However, due
    to the nature how provider tests are run, we need to ensure that
    the file is read before we open it to write it.

* Implement a simple destroy method.
* Add tests for it
* Refactor code, so file is actually read only once. However, due
  to the nature how provider tests are run, we need to ensure that
  the file is read before we open it to write it.
slippycheeze added a commit that referenced this pull request Feb 9, 2012
implement #11017 - make file_line type ensurable
@slippycheeze slippycheeze merged commit 966a4bf into puppetlabs:master Feb 9, 2012
@jeffmccune
Copy link
Copy Markdown
Contributor

ensurable defaults to present so I think this was correctly handled as an API-backwards-compatible change as far as semver is concerned.

@duritong
Copy link
Copy Markdown
Contributor Author

Unfortunately @bodepd was right, currently file_line does nothing if you don't set ensure => present.

Fix and the an email asking why it is actually like that, coming soon.

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.

6 participants