Skip to content

Commit

Permalink
Remove stripping of step name. Replace removing only suffix step name (
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandInguva authored Jul 28, 2022
1 parent d51b497 commit b0b9c68
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ def parse_step(step_name):
Returns:
lower case step name without namespace and step label
"""
return step_name.lower().replace(' ', '_').strip('step:_')
prefix = 'step'
step_name = step_name.lower().replace(' ', '_')
step_name = (
step_name[len(prefix):]
if prefix and step_name.startswith(prefix) else step_name)
return step_name.strip(':_')


def split_metrics_by_namespace_and_name(metrics, namespace, name):
Expand Down

0 comments on commit b0b9c68

Please sign in to comment.