Permalink
Browse files

Registering new module in auth handler, setup.py, etc

  • Loading branch information...
mumrah committed Jul 20, 2011
1 parent b4bd5c9 commit 8427d86e5494ba75e390e8c4597403feee7be8d1
Showing with 30 additions and 4 deletions.
  1. +1 −1 boto/auth.py
  2. +25 −0 boto/cloudformation/__init__.py
  3. +2 −2 boto/cloudformation/connection.py
  4. +2 −1 setup.py
View
@@ -236,7 +236,7 @@ class QuerySignatureV2AuthHandler(QuerySignatureHelper, AuthHandler):
SignatureVersion = 2
capability = ['sign-v2', 'ec2', 'ec2', 'emr', 'fps', 'ecs',
- 'sdb', 'iam', 'rds', 'sns', 'sqs']
+ 'sdb', 'iam', 'rds', 'sns', 'sqs', 'cloudformation']
def _calc_signature(self, params, verb, path, server_name):
boto.log.debug('using _calc_signature_2')
@@ -0,0 +1,25 @@
+# Copyright (c) 2010-2011 Mitch Garnaat http://garnaat.org/
+# Copyright (c) 2010-2011, Eucalyptus Systems, Inc.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish, dis-
+# tribute, sublicense, and/or sell copies of the Software, and to permit
+# persons to whom the Software is furnished to do so, subject to the fol-
+# lowing conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
+# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
+# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+# IN THE SOFTWARE.
+
+# this is here for backward compatibility
+# originally, the SNSConnection class was defined here
+from connection import CloudFormationConnection
@@ -192,6 +192,7 @@ def list_stacks(self, stack_status_filters=[], next_token=None):
if len(stack_status_filters) > 0:
self.build_list_params(params, stack_status_filters,
"StackStatusFilter.member")
+
response = self.make_request('ListStacks', params, '/', 'GET')
body = response.read()
if response.status == 200:
@@ -210,12 +211,11 @@ def validate_template(self, template_body=None, template_url=None):
if template_body and template_url:
boto.log.warning("If both TemplateBody and TemplateURL are"
" specified, only TemplateBody will be honored by the API")
- response = self.make_request('ValidateTemplate', params, '/', 'POST')
+ response = self.make_request('ValidateTemplate', params, '/', 'GET')
body = response.read()
if response.status == 200:
return json.loads(body)
else:
boto.log.error('%s %s' % (response.status, response.reason))
boto.log.error('%s' % body)
raise self.ResponseError(response.status, response.reason, body)
-
View
@@ -58,7 +58,8 @@
"boto.pyami", "boto.mashups", "boto.contrib", "boto.manage",
"boto.services", "boto.cloudfront", "boto.roboto",
"boto.rds", "boto.vpc", "boto.fps", "boto.emr", "boto.sns",
- "boto.ecs", "boto.iam", "boto.route53", "boto.ses"],
+ "boto.ecs", "boto.iam", "boto.route53", "boto.ses",
+ "boto.cloudformation"],
license = "MIT",
platforms = "Posix; MacOS X; Windows",
classifiers = ["Development Status :: 5 - Production/Stable",

0 comments on commit 8427d86

Please sign in to comment.