Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gem dependencies #219

Merged
merged 8 commits into from
Jun 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Avoid referencing undefined OpenStruct
  • Loading branch information
silug committed Jun 6, 2024
commit 93f72399862eeebd8d2a77010c85034437d66043
3 changes: 2 additions & 1 deletion lib/simp/beaker_helpers.rb
Original file line number Diff line number Diff line change
@@ -259,7 +259,8 @@ def pfact_on(sut, fact_name)
end

# Ensure that Hashes return as Hash objects
found_fact.is_a?(OpenStruct) ? found_fact.marshal_dump : found_fact
# OpenStruct objects have a marshal_dump method
found_fact.respond_to?(:marshal_dump) ? found_fact.marshal_dump : found_fact
end

# Returns the modulepath on the SUT, as an Array
Loading