-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(controller): Consider nested expanded task in reference #5594
Conversation
Signed-off-by: Simon Behar <simbeh7@gmail.com>
@@ -2360,7 +2360,10 @@ func hasOutputResultRef(name string, parentTmpl *wfv1.Template) bool { | |||
func getStepOrDAGTaskName(nodeName string) string { | |||
// If our name contains an open parenthesis, this node is a child of a Retry node or an expanded node | |||
// (e.g. withItems, withParams, etc.). Ignore anything after the parenthesis. | |||
if parenthesisIndex := strings.Index(nodeName, "("); parenthesisIndex >= 0 { | |||
if parenthesisIndex := strings.LastIndex(nodeName, "("); parenthesisIndex >= 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh
Codecov Report
@@ Coverage Diff @@
## master #5594 +/- ##
==========================================
+ Coverage 47.00% 47.08% +0.07%
==========================================
Files 240 240
Lines 15002 15005 +3
==========================================
+ Hits 7052 7065 +13
+ Misses 7053 7042 -11
- Partials 897 898 +1
Continue to review full report at Codecov.
|
Signed-off-by: Simon Behar <simbeh7@gmail.com>
Fixes #5574