Add support for setting tags on ecs task definitions
This also implements the ecs.list_tags_for_resources, although the resources it checks for are currently only the task definitions
This commit is contained in:
parent
feef7b2b5a
commit
64e2a74e8c
4 changed files with 99 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
from __future__ import unicode_literals
|
||||
from moto.core.exceptions import RESTError
|
||||
from moto.core.exceptions import RESTError, JsonRESTError
|
||||
|
||||
|
||||
class ServiceNotFoundException(RESTError):
|
||||
|
|
@ -11,3 +11,13 @@ class ServiceNotFoundException(RESTError):
|
|||
message="The service {0} does not exist".format(service_name),
|
||||
template='error_json',
|
||||
)
|
||||
|
||||
|
||||
class TaskDefinitionNotFoundException(JsonRESTError):
|
||||
code = 400
|
||||
|
||||
def __init__(self):
|
||||
super(TaskDefinitionNotFoundException, self).__init__(
|
||||
error_type="ClientException",
|
||||
message="The specified task definition does not exist.",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue