fix #2113
moto must return Http status code 201 when lambda publish_version has succeeded
This commit is contained in:
parent
64152f4cda
commit
11ff548d14
2 changed files with 6 additions and 4 deletions
|
|
@ -183,7 +183,7 @@ class LambdaResponse(BaseResponse):
|
|||
fn = self.lambda_backend.publish_function(function_name)
|
||||
if fn:
|
||||
config = fn.get_configuration()
|
||||
return 200, {}, json.dumps(config)
|
||||
return 201, {}, json.dumps(config)
|
||||
else:
|
||||
return 404, {}, "{}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue