Commit cda4dd97 authored by Xorima Bot's avatar Xorima Bot

Cookstyle 6.2.9 Fixes

Issues found and resolved with: libraries/helpers.rb

 - 31:18 convention: Style/HashEachMethods - Use `each_key` instead of `keys.each`.
Signed-off-by: default avatarXorima Bot <xorimabot@avon-lea.co.uk>
parent 00e28e9c
# Changelog
## Unreleased
- resolved cookstyle error: libraries/helpers.rb:31:18 convention: `Style/HashEachMethods`
## [Unreleased]
### Added
......
......@@ -28,7 +28,7 @@ class Chef
def self.object_to_ossec(object)
case object
when Hash
object.keys.each do |k|
object.each_key do |k|
if k == 'content!'
object[:content!] = object_to_ossec(object.delete(k))
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment