Permalink
Browse files

support passing an Distribution object to setDistributiinConfig

  • Loading branch information...
1 parent 2156216 commit 7b8fc4f11d73b3d98671d6541e8fdd6085f0b9c1 @tellnes committed Apr 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/index.js
View
@@ -274,7 +274,7 @@ CloudFront.prototype.setDistributionConfig = function(distribution, config, etag
item.etag = res.headers.etag;
cb(null, item);
});
- req.write(this.generateDistributionXml(config));
+ req.write(this.generateDistributionXml(config.config || config));
req.end();
};

0 comments on commit 7b8fc4f

Please sign in to comment.