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 1 commit into from Sep 19, 2016


None yet
2 participants
Copy link

olivielpeau commented Sep 19, 2016

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 chef-cookbooks/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 the bug label Sep 19, 2016

@olivielpeau olivielpeau added this to the 2.6.0 milestone Sep 19, 2016

[yum_repository] Use `:create` action instead of deprecated `:add`
`: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 Sep 19, 2016

Copy link

degemer left a comment


@olivielpeau olivielpeau merged commit 82bbbea into master Sep 19, 2016

2 checks passed

ci/circleci Your tests passed on CircleCI!
continuous-integration/travis-ci/pr The Travis CI build passed

@olivielpeau olivielpeau deleted the olivielpeau/use-create-yum-repo branch Sep 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.