Skip to content

Commit

Permalink
Make Codespell happy
Browse files Browse the repository at this point in the history
Fix the following errors:
```
Error: ./pkg/datasource/service.go:247: valie ==> value, valid
Error: ./pkg/manager/service.go:460: sourece ==> source
Error: ./pkg/manager/service.go:475: sourece ==> source
```

Signed-off-by: Volker Theile <[email protected]>
(cherry picked from commit c140ba9)
  • Loading branch information
votdev authored and innobead committed Feb 19, 2024
1 parent e07c278 commit 061395f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/datasource/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (s *Service) exportFromVolume(parameters map[string]string) error {

var timeout int
if timeout, err = strconv.Atoi(parameters[types.DataSourceTypeExportFromVolumeParameterFileSyncHTTPClientTimeout]); err != nil {
s.log.Warnf("DataSource Service: Failed to parse string %v to an valie timeout integer, will ignore this input parameter: %v",
s.log.Warnf("DataSource Service: Failed to parse string %v to a valid timeout integer, will ignore this input parameter: %v",
parameters[types.DataSourceTypeExportFromVolumeParameterFileSyncHTTPClientTimeout], err)
timeout = 60
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/manager/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ func (m *Manager) Fetch(ctx context.Context, req *rpc.FetchRequest) (resp *rpc.B

var srcFilePath string
if req.DataSourceAddress != "" {
log.Infof("Backing Image Manager: need to transfer the file from the data sourece server first")
log.Infof("Backing Image Manager: need to transfer the file from the data source server first")
srcFilePath = types.GetDataSourceFilePath(m.diskPath, req.Spec.Name, req.Spec.Uuid)
dsClient := &client.DataSourceClient{Remote: req.DataSourceAddress}
dsInfo, err := dsClient.Get()
Expand All @@ -472,7 +472,7 @@ func (m *Manager) Fetch(ctx context.Context, req *rpc.FetchRequest) (resp *rpc.B
return nil, err
}
} else {
log.Infof("Backing Image Manager: there is no need to transfer the file from the data sourece server, will try to directly reuse the file")
log.Infof("Backing Image Manager: there is no need to transfer the file from the data source server, will try to directly reuse the file")
srcFilePath = types.GetBackingImageFilePath(m.diskPath, req.Spec.Name, req.Spec.Uuid)
}

Expand Down

0 comments on commit 061395f

Please sign in to comment.