File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/google-cloud-logging/google/cloud/logging_v2/handlers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def _create_functions_resource():
7373 labels = {
7474 "project_id" : project ,
7575 "function_name" : function_name ,
76- "region" : region if region else "" ,
76+ "region" : region . split ( "/" )[ - 1 ] if region else "" ,
7777 },
7878 )
7979 return resource
@@ -131,7 +131,7 @@ def _create_cloud_run_resource():
131131 "project_id" : project ,
132132 "service_name" : os .environ .get (_CLOUD_RUN_SERVICE_ID , "" ),
133133 "revision_name" : os .environ .get (_CLOUD_RUN_REVISION_ID , "" ),
134- "location" : region if region else "" ,
134+ "location" : region . split ( "/" )[ - 1 ] if region else "" ,
135135 "configuration_name" : os .environ .get (_CLOUD_RUN_CONFIGURATION_ID , "" ),
136136 },
137137 )
You can’t perform that action at this time.
0 commit comments