summaryrefslogtreecommitdiff
path: root/lib/chef/resource/dnf_package.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-12-01 13:24:32 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-12-13 13:31:50 -0800
commitecfd20c6d27fc0a69a353e14926d59c0a323de92 (patch)
tree0b41ef579e2a044a9dea8484fa85ef43b2936ab9 /lib/chef/resource/dnf_package.rb
parente4b841739a2f8e181593f6bd413ebe9e161ef7d6 (diff)
downloadchef-ecfd20c6d27fc0a69a353e14926d59c0a323de92.tar.gz
add tests and deprecation for allow_downgrade
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource/dnf_package.rb')
-rw-r--r--lib/chef/resource/dnf_package.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/resource/dnf_package.rb b/lib/chef/resource/dnf_package.rb
index d712e66cc3..e2b89bde7a 100644
--- a/lib/chef/resource/dnf_package.rb
+++ b/lib/chef/resource/dnf_package.rb
@@ -54,8 +54,9 @@ class Chef
end
}
- # FIXME: dnf install should downgrade, so this should warn that users do not need to use it any more?
- property :allow_downgrade, [ true, false ], default: false
+ def allow_downgrade(arg = nil)
+ Chef.deprecated(:dnf_package_allow_downgrade, "the allow_downgrade property on the dnf_package provider is not used, DNF supports downgrades by default.")
+ end
end
end
end