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

[yum_repository] Use :create action instead of deprecated :add #362

Merged
merged 1 commit into from
Sep 19, 2016

Conversation

olivielpeau
Copy link
Member

In the same vein as #361

:add has been an alias of :create since version 3.0 of the yum cookbook, so it's safe
to use :create (see sous-chefs/yum@03e455c#diff-ea218fc13ddbe174ac160d2f69f9a01bR67). Before 3.0 it had a slightly different behavior.

Solves the following deprecation warning on yum 4.0:

WARN: The :add method in yum_repository has been deprecated in favor of :create. Please update your cookbook to use the :create action

@olivielpeau olivielpeau added this to the 2.6.0 milestone Sep 19, 2016
`:add` is an alias of `:create` since version 3.0 of the `yum` cookbook
so it's safe to use `:create`
@olivielpeau olivielpeau force-pushed the olivielpeau/use-create-yum-repo branch from 7fe9a95 to 40c6dd0 Compare September 19, 2016 16:58
Copy link
Member

@degemer degemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@olivielpeau olivielpeau merged commit 82bbbea into master Sep 19, 2016
@olivielpeau olivielpeau deleted the olivielpeau/use-create-yum-repo branch September 19, 2016 17:16
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.

2 participants