Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 committed Nov 28, 2024
1 parent 7f5d7f7 commit abfcfe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/gcp/fix_plugin_gcp/resources/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def resource_raw_name(self) -> str:
Returns:
str: The last segment of the resource ID (e.g., "function-1" from "projects/{project}/locations/{location}/functions/function-1").
"""
return self.id.strip().split("/")[-1]
return self.id.rsplit("/", maxsplit=1)[-1]

def delete(self, graph: Graph) -> bool:
if not self.api_spec:
Expand Down

0 comments on commit abfcfe8

Please sign in to comment.