mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
9580732814
If a profile has a data files directory that looks like this: ``` files/platforms/one/data.json files/platforms/two/data.json files/platforms/three/data.json ``` ... the source reader will return the directories in the list of files but with nil contents. This causes an issue when Inspec::Profile tries to create a sha256 checksum of the profile contents only to try to cast nil to a string when building the null-delimited profile contents string. Files that are empty will have an empty string as its contents, so it's safe to assume that file entries with nil contents are actually a directory and have no affect on the profile's checksum. Therefore, this change will eliminate any file entries in responses from the source readers where the contents are nil. Signed-off-by: Adam Leff <adam@leff.co> |
||
---|---|---|
.. | ||
complete-metadata | ||
complete-profile | ||
dependencies | ||
empty-metadata | ||
failures | ||
invalid-version | ||
legacy-complete-metadata | ||
legacy-empty-metadata | ||
legacy-simple-metadata | ||
library | ||
license-invalid | ||
license-proprietary | ||
license-spdx | ||
profile-support-skip | ||
profile-with-bad-metadata | ||
simple-inheritance | ||
simple-metadata | ||
skippy-controls | ||
skippy-profile-os | ||
spec_only | ||
supermarket-dep | ||
supported_inspec | ||
unsupported_inspec | ||
windows-only |