You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to compare two hashes that has no-diff ( i.e. for each key 'k' in 'a', a[k] == b[k] ) with the OneviewCookbook::Helper#get_diff the result returned is '\n'.
Environment Details
oneview Cookbook Version: 1.1.0
OneView Version: N/A
chef-client Version: N/A
platform: N/A
Steps to Reproduce
Use get_diff method with two hashes with no-diff like:
It uses "\n" as the initial string here, and I think I did that so that I could just tack the diff onto the end of the log statement (like this), and not have to repeat myself. We can always just set the default string to an empty string and add a newline before the diff though (or set it to an empty string if recursive_diff returns just \n). That's fine with me :)
Scenario/Intent
When trying to compare two hashes that has no-diff ( i.e. for each key 'k' in 'a', a[k] == b[k] ) with the
OneviewCookbook::Helper#get_diff
the result returned is'\n'
.Environment Details
Steps to Reproduce
Use get_diff method with two hashes with no-diff like:
Expected Result
get_diff should return
''
Actual Result
get_diff returns
'\n'
The text was updated successfully, but these errors were encountered: