Skip to content

Commit

Permalink
(chore): Fix the disk-fill fault (#715)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Chaudhary <[email protected]>
  • Loading branch information
ispeakc0de authored Oct 15, 2024
1 parent fc646d6 commit 6a386d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chaoslib/litmus/disk-fill/helper/disk-fill.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a386d1

Please sign in to comment.