Skip to content

Commit d5c0cb7

Browse files
committed
Fix ruby2.7 deprecation warnings
1 parent 81cba7e commit d5c0cb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/puppet/resource_api/parameter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(type_name, data_type, attribute_name, resource_hash)
1717
@type_name = type_name
1818
@data_type = data_type
1919
@attribute_name = attribute_name
20-
super(resource_hash) # Pass resource to parent Puppet class.
20+
super(**resource_hash) # Pass resource to parent Puppet class.
2121
end
2222

2323
# This method assigns value to the parameter and cleans value.

lib/puppet/resource_api/property.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def initialize(type_name, data_type, attribute_name, resource_hash)
1818
# Define class method insync?(is) if the name is :ensure
1919
def_insync? if @attribute_name == :ensure && self.class != Puppet::ResourceApi::Property
2020
# Pass resource to parent Puppet class.
21-
super(resource_hash)
21+
super(**resource_hash)
2222
end
2323

2424
# This method returns value of the property.

0 commit comments

Comments
 (0)