adding inputs output struct based on argo naming for now
This commit is contained in:
parent
275bd56fe6
commit
6a977203ab
@ -75,6 +75,9 @@ func (r *AbstractIntanciatedResource[T]) GetSelectedInstance() utils.DBObject {
|
|||||||
if r.SelectedInstanceIndex != nil && len(r.Instances) > *r.SelectedInstanceIndex {
|
if r.SelectedInstanceIndex != nil && len(r.Instances) > *r.SelectedInstanceIndex {
|
||||||
return r.Instances[*r.SelectedInstanceIndex]
|
return r.Instances[*r.SelectedInstanceIndex]
|
||||||
}
|
}
|
||||||
|
if len(r.Instances) > 0 {
|
||||||
|
return r.Instances[0]
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user