removes duplicate declaration of list_tags_for_resource

This commit is contained in:
Bryan Alexander 2020-02-18 13:51:35 -06:00
parent d1efedec29
commit 4e2fe76820

View File

@ -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: