Skip to content

Commit 6a386d1

Browse files
authored
(chore): Fix the disk-fill fault (#715)
Signed-off-by: Shubham Chaudhary <[email protected]>
1 parent fc646d6 commit 6a386d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chaoslib/litmus/disk-fill/helper/disk-fill.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ func fillDisk(t targetDetails, bs int) error {
185185
out, err := cmd.CombinedOutput()
186186
if err != nil {
187187
log.Error(err.Error())
188+
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)}
188189
}
189-
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)}
190+
return nil
190191
}
191192

192193
// getEphemeralStorageAttributes derive the ephemeral storage attributes from the target pod

0 commit comments

Comments
 (0)