Jose Diaz-Gonzalez

Merge pull request #53 from rodrigosaito/avoid_infinite_loop_function_create

Show errors and stop function.create when ClientError
...@@ -396,6 +396,9 @@ class Function(object): ...@@ -396,6 +396,9 @@ class Function(object):
396 if 'InvalidParameterValueException' in str(e): 396 if 'InvalidParameterValueException' in str(e):
397 LOG.debug('Role is not ready, waiting') 397 LOG.debug('Role is not ready, waiting')
398 time.sleep(2) 398 time.sleep(2)
399 + else:
400 + LOG.debug(str(e))
401 + ready = True
399 except Exception: 402 except Exception:
400 LOG.exception('Unable to upload zip file') 403 LOG.exception('Unable to upload zip file')
401 ready = True 404 ready = True
......