mirror of
https://github.com/inspec/inspec
synced 2024-12-24 03:53:15 +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> |
||
---|---|---|
.. | ||
inspec-compliance | ||
inspec-supermarket | ||
inspect-habitat |