Skip to content

Commit

Permalink
Merge pull request #1265 from puppetlabs/maint-minor_typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chelnak authored Jun 29, 2023
2 parents b22f936 + 73e5671 commit 98e2f4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pdk/cli/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def module_version_check
# than the installed PDK, and advises the user to run pdk update.
elsif Gem::Version.new(PDK::VERSION) > Gem::Version.new(module_pdk_ver)
message = 'This module is compatible with an older version of PDK.'
message = 'Module templates older than 3.0.0 my experience issues.' if Gem::Version.new(module_pdk_ver) < Gem::Version.new('3.0.0')
message = 'Module templates older than 3.0.0 may experience issues.' if Gem::Version.new(module_pdk_ver) < Gem::Version.new('3.0.0')

PDK.logger.warn "#{message} Run `pdk update` to update it to the latest version."
end
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/pdk/cli/util_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
let(:module_pdk_ver) { '2.7.1' }

before do
expect(logger).to receive(:warn).with(a_string_matching(/Module templates older than 3.0.0 my experience issues. Run `pdk update` to update it to the latest version./i))
expect(logger).to receive(:warn).with(a_string_matching(/Module templates older than 3.0.0 may experience issues. Run `pdk update` to update it to the latest version./i))
end

it 'does not raise an error' do
Expand Down

0 comments on commit 98e2f4b

Please sign in to comment.