Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix generateDistributionXml if there is trusted signers

  • Loading branch information...
commit a6c8cc0f69dc2db36e66759010b559f05b6c75a2 1 parent a30ca14
@tellnes authored
Showing with 2 additions and 9 deletions.
  1. +2 −9 lib/index.js
View
11 lib/index.js
@@ -716,15 +716,8 @@ function readCacheBehavior(data) {
obj.targetOriginId = data.TargetOriginId
obj.forwardQueryString = data.ForwardedValues.QueryString === 'true'
- obj.trustedSigners = []
-
- if (data.TrustedSigners) {
- if (Number(data.TrustedSigners.Quantity)) {
- obj.trustedSigners = data.TrustedSigners.Items
- }
-
- obj.trustedSigners.enabled = data.TrustedSigners.Enabled === 'true'
- }
+ obj.trustedSigners = readItems(data.TrustedSigners, 'AwsAccountNumber')
+ obj.trustedSigners.enabled = data.TrustedSigners.Enabled === 'true'
obj.viewerProtocolPolicy = data.ViewerProtocolPolicy
Please sign in to comment.
Something went wrong with that request. Please try again.