Merge pull request #13374 from MikeMcQuaid/fix_broken_manifest

software_spec: handle nil manifests_annotations.
This commit is contained in:
Mike McQuaid 2022-06-03 15:20:13 +01:00 committed by GitHub
commit c4c020aba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,7 +384,7 @@ class Bottle
manifests = json["manifests"]
raise ArgumentError, "Missing 'manifests' section." if manifests.blank?
manifests_annotations = manifests.map { |m| m["annotations"] }
manifests_annotations = manifests.map { |m| m["annotations"] }.compact
raise ArgumentError, "Missing 'annotations' section." if manifests_annotations.blank?
bottle_digest = @resource.checksum.hexdigest