generated from TrueCloudLab/basic
engine: Fix target considering order #49
1 changed files with 3 additions and 3 deletions
|
@ -70,12 +70,12 @@ func NewRequestTarget(namespace, container string) RequestTarget {
|
|||
}
|
||||
|
||||
func (rt *RequestTarget) Targets() (targets []Target) {
|
||||
if rt.Container != nil {
|
||||
targets = append(targets, *rt.Container)
|
||||
}
|
||||
if rt.Namespace != nil {
|
||||
targets = append(targets, *rt.Namespace)
|
||||
}
|
||||
if rt.Container != nil {
|
||||
targets = append(targets, *rt.Container)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue