createInvalidation is not working #3

Closed
krootee opened this Issue Jul 3, 2012 · 2 comments

Projects

None yet

2 participants

@krootee
krootee commented Jul 3, 2012

Generated XML is not valid - current format differs from what is written in the code.
Link - http://docs.amazonwebservices.com/AmazonCloudFront/latest/APIReference/InvalidationBatchDatatype.html

@krootee
krootee commented Jul 3, 2012

I made local fix - you need to modify CloudFront.prototype.generateInvalidationXml to:

CloudFront.prototype.generateInvalidationXml = function(callerReference, paths) {
return data2xml('InvalidationBatch', {
_attr : { xmlns : 'http://cloudfront.amazonaws.com/doc/2012-05-05/' },
Paths: { Quantity : paths.length, Items: { Path: paths }},
CallerReference: callerReference
});
};

@tellnes tellnes closed this in 46ca959 Jul 7, 2012
@tellnes
Owner
tellnes commented Jul 7, 2012

Thanks

I've pushed an update to NPM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment