Mitch Garnaat

Fixing some typos and silly bugs.

...@@ -224,7 +224,7 @@ class Function(object): ...@@ -224,7 +224,7 @@ class Function(object):
224 return self.create() 224 return self.create()
225 225
226 def publish_version(self, description): 226 def publish_version(self, description):
227 - LOG.debug('publishing version of ', self.name) 227 + LOG.debug('publishing version of %s', self.name)
228 try: 228 try:
229 response = self._lambda_client.call( 229 response = self._lambda_client.call(
230 'publish_version', 230 'publish_version',
...@@ -237,7 +237,7 @@ class Function(object): ...@@ -237,7 +237,7 @@ class Function(object):
237 return response['Version'] 237 return response['Version']
238 238
239 def list_versions(self): 239 def list_versions(self):
240 - LOG.debug('listing versions of ', self.name) 240 + LOG.debug('listing versions of %s', self.name)
241 try: 241 try:
242 response = self._lambda_client.call( 242 response = self._lambda_client.call(
243 'list_versions_by_function', 243 'list_versions_by_function',
...@@ -263,7 +263,7 @@ class Function(object): ...@@ -263,7 +263,7 @@ class Function(object):
263 LOG.exception('Unable to create alias') 263 LOG.exception('Unable to create alias')
264 264
265 def list_aliases(self): 265 def list_aliases(self):
266 - LOG.debug('listing aliases of ', self.name) 266 + LOG.debug('listing aliases of %s', self.name)
267 try: 267 try:
268 response = self._lambda_client.call( 268 response = self._lambda_client.call(
269 'list_aliases', 269 'list_aliases',
......
...@@ -131,9 +131,8 @@ class Policy(object): ...@@ -131,9 +131,8 @@ class Policy(object):
131 m = hashlib.md5() 131 m = hashlib.md5()
132 m.update(document) 132 m.update(document)
133 policy_md5 = m.hexdigest() 133 policy_md5 = m.hexdigest()
134 - LOG.debug('policy_md5: {}'.format(policy_md5)) 134 + LOG.debug('policy_md5: %s', policy_md5)
135 - LOG.debug('cache md5: {}'.format( 135 + LOG.debug('cache md5: %s', self._context.cache.get('policy_md5'))
136 - self._context.cache.get('policy_md5')))
137 if policy_md5 != self._context.cache.get('policy_md5'): 136 if policy_md5 != self._context.cache.get('policy_md5'):
138 self._context.cache['policy_md5'] = policy_md5 137 self._context.cache['policy_md5'] = policy_md5
139 self._context.save_cache() 138 self._context.save_cache()
......
1 -boto3==1.2.0 1 +boto3>=1.2.0
2 click==5.1 2 click==5.1
3 PyYAML>=3.11 3 PyYAML>=3.11
4 mock>=1.0.1 4 mock>=1.0.1
......
...@@ -5,7 +5,7 @@ from setuptools import setup, find_packages ...@@ -5,7 +5,7 @@ from setuptools import setup, find_packages
5 import os 5 import os
6 6
7 requires = [ 7 requires = [
8 - 'boto3==1.2.0', 8 + 'boto3>=1.2.0',
9 'click>=5.0', 9 'click>=5.0',
10 'PyYAML>=3.11' 10 'PyYAML>=3.11'
11 ] 11 ]
......