Fix ListPhases to return not empty phase docs

Change-Id: I44dd36c41279b34357d6d86a92fc49bfca7b871b
This commit is contained in:
Kostiantyn Kalynovskyi 2020-09-18 15:47:28 -05:00
parent 27e0ab455c
commit 9f01c87648

View File

@ -130,7 +130,7 @@ func (helper *Helper) ListPhases() ([]*v1alpha1.Phase, error) {
if err = doc.ToAPIObject(p, v1alpha1.Scheme); err != nil { if err = doc.ToAPIObject(p, v1alpha1.Scheme); err != nil {
return nil, err return nil, err
} }
phases = append(phases, phase) phases = append(phases, p)
} }
return phases, nil return phases, nil
} }