software_spec: handle nil manifests_annotations.

Fixes #13372
This commit is contained in:
Mike McQuaid 2022-06-03 14:49:55 +01:00
parent e8fcb6af09
commit 195e4d0f89
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

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