mirror of
https://github.com/inspec/inspec
synced 2024-11-15 01:17:08 +00:00
dda24b9f98
The Compliance::API.version method could potentially return a hash containing no "version" key but would return an empty hash upon any expected failure. Downstream callers of the Compliance::API.version method were looking for a "version" key to always be present when, in some cases, it would not be. This change ensures that if a version is not available, there is no "version" key in the hash, and downstream callers of this method have been changed to check for nil instead of empty. Signed-off-by: Adam Leff <adam@leff.co> |
||
---|---|---|
.. | ||
bundles | ||
fetchers | ||
inspec | ||
matchers | ||
resources | ||
source_readers | ||
utils | ||
inspec.rb |