Skip to content

Commit ceec726

Browse files
committed
update resource tag
1 parent 81eec49 commit ceec726

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

datadog_lambda/tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def parse_lambda_tags_from_arn(arn):
4848
else:
4949
_, _, _, region, account_id, _, function_name, alias = split_arn
5050

51-
resource = function_name + ":" + alias
51+
resource = function_name + "/" + alias
5252

5353
return [
5454
"region:{}".format(region),

tests/test_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_parse_lambda_tags_from_arn(self):
3434
"region:us-west-1",
3535
"account_id:1234597598159",
3636
"functionname:other-function",
37-
"resource:other-function:function-alias",
37+
"resource:other-function/function-alias",
3838
],
3939
)
4040

tests/test_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def lambda_handler(event, context):
223223
"region:us-west-1",
224224
"account_id:123457598159",
225225
"functionname:python-layer-test",
226-
"resource:python-layer-test:foobar",
226+
"resource:python-layer-test/foobar",
227227
"cold_start:true",
228228
"memorysize:256",
229229
"executedversion:1",

0 commit comments

Comments
 (0)