diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2023-02-20 19:04:16 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 19:04:16 +0530 |
commit | c9196d809d4429c7cea90731446039090da33730 (patch) | |
tree | edd4da7759ddfffba7be64cccfbff88ffb4b21a9 /lib/ohai/plugins/vmware.rb | |
parent | 540555c0543f20b65f7416a7bc245d582534613a (diff) | |
download | ohai-c9196d809d4429c7cea90731446039090da33730.tar.gz |
Update rubocop-performance requirement from 1.15.2 to 1.16.0 (#1784)
* Update rubocop-performance requirement from 1.15.2 to 1.16.0
Updates the requirements on [rubocop-performance](https://github.com/rubocop/rubocop-performance) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-performance/releases)
- [Changelog](https://github.com/rubocop/rubocop-performance/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-performance/compare/v1.15.2...v1.16.0)
---
updated-dependencies:
- dependency-name: rubocop-performance
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix chefstyle linting errors
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
* Fix unit test failures due to changing match with include? to fix chefstye error. This happens because method file_val_if_exists returns string only when file is found, else it returns nil
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Neha Pansare <neha.pansare@progress.com>
Diffstat (limited to 'lib/ohai/plugins/vmware.rb')
-rw-r--r-- | lib/ohai/plugins/vmware.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/vmware.rb b/lib/ohai/plugins/vmware.rb index 438efb41..a6527b49 100644 --- a/lib/ohai/plugins/vmware.rb +++ b/lib/ohai/plugins/vmware.rb @@ -68,7 +68,7 @@ Ohai.plugin(:VMware) do # * confirmed that this is broken on Windows Server 2022 vmware[param] = vmware[param].force_encoding(Encoding::IBM437).encode("UTF-8") end - if /UpdateInfo failed/.match?(vmware[param]) + if vmware[param].include?("UpdateInfo failed") vmware[param] = nil end end |