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

Fix deprecation warning, and fix chef registering a changed resource on every run #14

Merged
merged 2 commits into from
Oct 7, 2016

Conversation

mivok
Copy link
Contributor

@mivok mivok commented Oct 7, 2016

Description

Two fixes:

  • Fix a deprecation warning
  • Remove converge_by from the provider code, which if left in causes chef to mark the resource as changed on every run.

```
Deprecated features used!
  Cannot specify both default and name_property together on property path of resource motd_tail. Only one (name_property) will be obeyed. In Chef 13, this will become an error. Please remove one or the other from the property. at 1 location:
    - /var/chef/cache/cookbooks/motd-tail/libraries/resource_motd_tail.rb:27:in `<class:MotdTail>'
```

Signed-off-by: Mark Harrison <mark@mivok.net>
The converge by causes a change to be registered on every chef run, even
when the motd file is unchanged. In addition, it's not necessary to have
the converge_by in place as the content inside is a normal chef
resource.

Signed-off-by: Mark Harrison <mark@mivok.net>
@tas50 tas50 merged commit 690368b into sous-chefs:master Oct 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants