Skip to content

Commit

Permalink
Adhere to new replica scheduler error convention
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Weber <eric.weber@suse.com>
  • Loading branch information
ejweber committed Aug 9, 2023
1 parent e526e41 commit d21f226
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scheduler/replica_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ func (rcs *ReplicaScheduler) getDiskCandidates(nodeInfo map[string]*longhorn.Nod

diskSoftAntiAffinity, err := rcs.ds.GetSettingAsBool(types.SettingNameReplicaDiskSoftAntiAffinity)
if err != nil {
logrus.Errorf("Error getting replica disk soft anti-affinity setting: %v", err)
err = errors.Wrapf(err, "failed to get %v setting", types.SettingNameReplicaDiskSoftAntiAffinity)
multiError.Append(util.NewMultiError(err.Error()))
return map[string]*Disk{}, multiError
}
if volume.Spec.ReplicaDiskSoftAntiAffinity != longhorn.ReplicaDiskSoftAntiAffinityDefault &&
volume.Spec.ReplicaDiskSoftAntiAffinity != "" {
Expand Down

0 comments on commit d21f226

Please sign in to comment.