Skip to content

Commit 0af02b0

Browse files
(PA-7815) Rubocop changes for pdk template 3.5.1
1 parent 0a1b7a2 commit 0af02b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/puppet/provider/yumrepo/inifile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def self.store(resource)
250250
current_mode = Puppet::FileSystem.stat(file).mode & 0o777
251251
next if current_mode == target_mode
252252
resource.info _('changing mode of %{file} from %{current_mode} to %{target_mode}') %
253-
{ file: file, current_mode: '%03o' % current_mode, target_mode: '%03o' % target_mode }
253+
{ file:, current_mode: '%03o' % current_mode, target_mode: '%03o' % target_mode }
254254
Puppet::FileSystem.chmod(target_mode, file)
255255
end
256256
end

lib/puppet/type/yumrepo.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# Doc string for properties that can be made 'absent'
2323
ABSENT_DOC = 'Set this to `absent` to remove it from the file completely.'.freeze
2424
# False can be false/0/no and True can be true/1/yes in yum.
25-
YUM_BOOLEAN = %r{^(true|false|0|1|no|yes)$}.freeze
25+
YUM_BOOLEAN = %r{^(true|false|0|1|no|yes)$}
2626
YUM_BOOLEAN_DOC = 'Valid values are: false/0/no or true/1/yes.'.freeze
2727

2828
# Common munge logic for YUM_BOOLEAN values. Munges for two requirements:

spec/spec_helper_acceptance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def run_puppet_install_helper
1515

1616
agent_sha = ENV['BEAKER_PUPPET_AGENT_SHA'] || ENV['PUPPET_AGENT_SHA']
1717
if agent_sha.nil? || agent_sha.empty?
18-
install_puppet_agent_on(hosts, options.merge(version: version))
18+
install_puppet_agent_on(hosts, options.merge(version:))
1919
else
2020
# If we have a development sha, assume we're testing internally
2121
dev_builds_url = ENV['DEV_BUILDS_URL'] || 'http://builds.delivery.puppetlabs.net'

0 commit comments

Comments
 (0)