@@ -31,7 +31,7 @@ func ChaosResult(chaosDetails *types.ChaosDetails, clients clients.ClientSets, r
3131 // It tries to get the chaosresult, if available
3232 // it will retry until it got chaos result or met the timeout(3 mins)
3333 isResultAvailable := false
34- result , err := clients .GetChaosResult (chaosDetails )
34+ result , err := clients .GetChaosResult (chaosDetails , resultDetails )
3535 if err != nil {
3636 return cerrors.Error {ErrorCode : cerrors .ErrorTypeChaosResultCRUD , Target : fmt .Sprintf ("{name: %s, namespace: %s}" , resultDetails .Name , chaosDetails .ChaosNamespace ), Reason : fmt .Sprintf ("failed to get result: %s" , err .Error ())}
3737 }
@@ -234,7 +234,7 @@ func PatchChaosResult(clients clients.ClientSets, chaosDetails *types.ChaosDetai
234234
235235// SetResultUID sets the ResultUID into the ResultDetails structure
236236func SetResultUID (resultDetails * types.ResultDetails , clients clients.ClientSets , chaosDetails * types.ChaosDetails ) error {
237- result , err := clients .GetChaosResult (chaosDetails )
237+ result , err := clients .GetChaosResult (chaosDetails , resultDetails )
238238 if err != nil {
239239 return cerrors.Error {ErrorCode : cerrors .ErrorTypeChaosResultCRUD , Target : fmt .Sprintf ("{name: %s, namespace: %s}" , resultDetails .Name , chaosDetails .ChaosNamespace ), Reason : err .Error ()}
240240 }
@@ -304,7 +304,7 @@ func AnnotateChaosResult(resultName, namespace, status, kind, name string) error
304304// GetChaosStatus get the chaos status based on annotations in chaosresult
305305func GetChaosStatus (resultDetails * types.ResultDetails , chaosDetails * types.ChaosDetails , clients clients.ClientSets ) (* v1alpha1.ChaosResult , error ) {
306306
307- result , err := clients .GetChaosResult (chaosDetails )
307+ result , err := clients .GetChaosResult (chaosDetails , resultDetails )
308308 if err != nil {
309309 return nil , cerrors.Error {ErrorCode : cerrors .ErrorTypeChaosResultCRUD , Target : fmt .Sprintf ("{name: %s, namespace: %s}" , resultDetails .Name , chaosDetails .ChaosNamespace ), Reason : err .Error ()}
310310 }
0 commit comments