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):
if 'InvalidParameterValueException' in str(e):
LOG.debug('Role is not ready, waiting')
time.sleep(2)
else:
LOG.debug(str(e))
ready = True
except Exception:
LOG.exception('Unable to upload zip file')
ready = True
......