From 6a386d14106016a3ce516a87f233aeb95667bcc4 Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Tue, 15 Oct 2024 22:15:14 +0530 Subject: [PATCH] (chore): Fix the disk-fill fault (#715) Signed-off-by: Shubham Chaudhary --- chaoslib/litmus/disk-fill/helper/disk-fill.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chaoslib/litmus/disk-fill/helper/disk-fill.go b/chaoslib/litmus/disk-fill/helper/disk-fill.go index 474f93f87..0ebaf03be 100644 --- a/chaoslib/litmus/disk-fill/helper/disk-fill.go +++ b/chaoslib/litmus/disk-fill/helper/disk-fill.go @@ -185,8 +185,9 @@ func fillDisk(t targetDetails, bs int) error { out, err := cmd.CombinedOutput() if err != nil { log.Error(err.Error()) + return cerrors.Error{ErrorCode: cerrors.ErrorTypeChaosInject, Source: t.Source, Target: fmt.Sprintf("{podName: %s, namespace: %s, container: %s}", t.Name, t.Namespace, t.TargetContainer), Reason: string(out)} } - return cerrors.Error{ErrorCode: cerrors.ErrorTypeChaosInject, Source: t.Source, Target: fmt.Sprintf("{podName: %s, namespace: %s, container: %s}", t.Name, t.Namespace, t.TargetContainer), Reason: string(out)} + return nil } // getEphemeralStorageAttributes derive the ephemeral storage attributes from the target pod