Permalink
Browse files

fix generateDistributionXml if there is trusted signers

  • Loading branch information...
1 parent a30ca14 commit a6c8cc0f69dc2db36e66759010b559f05b6c75a2 @tellnes committed May 28, 2012
Showing with 2 additions and 9 deletions.
  1. +2 −9 lib/index.js
View
@@ -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

0 comments on commit a6c8cc0

Please sign in to comment.