From 7a7bc53a89f2a9dae17dae2b0306c1c98fc47e5b Mon Sep 17 00:00:00 2001 From: Brice Figureau Date: Sun, 23 Sep 2012 16:29:56 +0200 Subject: [PATCH] [aws|cdn] fix cdn documentation This corrects some small typos in the current CDN documentation. Signed-off-by: Brice Figureau --- docs/cdn/index.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cdn/index.markdown b/docs/cdn/index.markdown index 79781ef37..f26af88bf 100644 --- a/docs/cdn/index.markdown +++ b/docs/cdn/index.markdown @@ -37,13 +37,13 @@ Now you'll need to create a 'distribution' which represents a mapping from the C # parse the response for stuff you'll need later distribution_id = data.body['Id'] - caller_reference = data.body['CallerReference'] + caller_reference = data.body['DistributionConfig']['CallerReference'] etag = data.headers['ETag'] cdn_domain_name = data.body['DomainName'] # wait for the updates to propogate Fog.wait_for { - cdn.get_distribution(distribution_id).body['Status'] ## 'Deployed' + cdn.get_distribution(distribution_id).body['Status'] == 'Deployed' } ## Getting Served @@ -75,7 +75,7 @@ But, just in case you need to update things I'll run through how you can make ch Now you just need to wait for the update to happen like before and once its disabled we can delete it: Fog.wait_for { - cdn.get_distribution(distribution_id).body['Status'] ## 'Deployed' + cdn.get_distribution(distribution_id).body['Status'] == 'Deployed' } cdn.delete_distribution(distribution_id, etag)