removes duplicate declaration of list_tags_for_resource
This commit is contained in:
parent
d1efedec29
commit
4e2fe76820
@ -374,14 +374,6 @@ class EventsBackend(BaseBackend):
|
|||||||
"ResourceNotFoundException", "An entity that you specified does not exist."
|
"ResourceNotFoundException", "An entity that you specified does not exist."
|
||||||
)
|
)
|
||||||
|
|
||||||
def list_tags_for_resource(self, arn):
|
|
||||||
name = arn.split("/")[-1]
|
|
||||||
if name in self.rules:
|
|
||||||
return self.tagger.list_tags_for_resource(self.rules[name].arn)
|
|
||||||
raise JsonRESTError(
|
|
||||||
"ResourceNotFoundException", "An entity that you specified does not exist."
|
|
||||||
)
|
|
||||||
|
|
||||||
def tag_resource(self, arn, tags):
|
def tag_resource(self, arn, tags):
|
||||||
name = arn.split("/")[-1]
|
name = arn.split("/")[-1]
|
||||||
if name in self.rules:
|
if name in self.rules:
|
||||||
|
Loading…
Reference in New Issue
Block a user