Skip to content

Commit e5e4f9e

Browse files
committed
fix: replace Hash.except with reject
Hash.except is missing in Ruby 2.7 we have in Puppet/OpenVox v7.
1 parent 744ce16 commit e5e4f9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/gitlab_application_settings/gitlab_application_settings.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def set(context, changes, noop: false)
2828
changes.each do |name, change|
2929
should = change[:should]
3030
context.debug("changes to apply: #{should}")
31-
data = should.except(:name)
31+
data = should.reject { |k, _v| k == :name }
3232

3333
context.updating(name) do
3434
@api_helper.put_json('/application/settings', data) unless noop

0 commit comments

Comments
 (0)