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

(IAC-859) Add ruby 2.7 to test matrix #276

Merged
merged 2 commits into from
Nov 16, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix ruby2.7 deprecation warnings
  • Loading branch information
DavidS committed Nov 16, 2020
commit d5c0cb76d1ac833804d3e6d7f506187093e1c8f0
2 changes: 1 addition & 1 deletion lib/puppet/resource_api/parameter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(type_name, data_type, attribute_name, resource_hash)
@type_name = type_name
@data_type = data_type
@attribute_name = attribute_name
super(resource_hash) # Pass resource to parent Puppet class.
super(**resource_hash) # Pass resource to parent Puppet class.
end

# This method assigns value to the parameter and cleans value.
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/resource_api/property.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(type_name, data_type, attribute_name, resource_hash)
# Define class method insync?(is) if the name is :ensure
def_insync? if @attribute_name == :ensure && self.class != Puppet::ResourceApi::Property
# Pass resource to parent Puppet class.
super(resource_hash)
super(**resource_hash)
end

# This method returns value of the property.
Expand Down