Merge pull request #13374 from MikeMcQuaid/fix_broken_manifest
software_spec: handle nil manifests_annotations.
This commit is contained in:
commit
c4c020aba5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user