mirror of
https://github.com/inspec/inspec
synced 2024-11-15 01:17:08 +00:00
d029f7f58c
When using the `query` method in the `postgres_session` resource, if the query fails, the `query` method attempts to call `skip_resource` with an error message. Not only does the `skip_resource` not properly work, but it also returns a `String` object back to the test which is probably going to try and call the `output` method on it to run the test. This results in an error like this: ``` Can't read ∅ undefined method `output' for "output":String ``` This change returns the full psql output as a Lines object to the user, including stderr, so they can at least get the error in their test output and avoids undefined method errors. Signed-off-by: Adam Leff <adam@leff.co> |
||
---|---|---|
.. | ||
bundles | ||
fetchers | ||
inspec | ||
matchers | ||
resources | ||
source_readers | ||
utils | ||
inspec.rb |