Skip to content

Commit

Permalink
Merge pull request #296 from ASBishop/delint
Browse files Browse the repository at this point in the history
Fix issues flagged by "make golint"
  • Loading branch information
openshift-merge-bot[bot] authored Nov 14, 2023
2 parents d83190f + 68cf6bd commit 8e46ea9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion controllers/cindervolume_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ func processCustomServiceConfig(customServiceConfig string) (bool, string) {
backendNames = append(backendNames, sectionName)

} else if token == "volume_driver" {
numDrivers += 1
numDrivers++
if strings.HasSuffix(line, ".LVMVolumeDriver") {
usesLVM = true
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/cinder/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ func GetNetworkAttachmentAddrs(namespace string, networkAttachments []string, ne
networkAttachmentAddrs := []string{}

for _, network := range networkAttachments {
network_name := namespace + "/" + network
if network_addrs, ok := networkAttachmentStatus[network_name]; ok {
networkAttachmentAddrs = append(networkAttachmentAddrs, network_addrs...)
networkName := namespace + "/" + network
if networkAddrs, ok := networkAttachmentStatus[networkName]; ok {
networkAttachmentAddrs = append(networkAttachmentAddrs, networkAddrs...)
}
}

Expand Down
3 changes: 2 additions & 1 deletion pkg/cindervolume/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ package cindervolume
const (
// Component -
Component = "cinder-volume"
Backend = "backend"
// Backend -
Backend = "backend"
)

0 comments on commit 8e46ea9

Please sign in to comment.