Skip to content

Commit f231bd6

Browse files
Vikash-8090-Yadavmandre
authored andcommitted
efactors and enhances the codebase of the cinder csi plugin (kubernetes#2288)
1 parent 822dd25 commit f231bd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/cinder-csi-plugin/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
var (
3535
endpoint string
3636
nodeID string
37-
cloudconfig []string
37+
cloudConfig []string
3838
cluster string
3939
httpEndpoint string
4040
)
@@ -83,7 +83,7 @@ func main() {
8383
klog.Fatalf("Unable to mark flag endpoint to be required: %v", err)
8484
}
8585

86-
cmd.PersistentFlags().StringSliceVar(&cloudconfig, "cloud-config", nil, "CSI driver cloud config. This option can be given multiple times")
86+
cmd.PersistentFlags().StringSliceVar(&cloudConfig, "cloud-config", nil, "CSI driver cloud config. This option can be given multiple times")
8787
if err := cmd.MarkPersistentFlagRequired("cloud-config"); err != nil {
8888
klog.Fatalf("Unable to mark flag cloud-config to be required: %v", err)
8989
}
@@ -100,7 +100,7 @@ func handle() {
100100

101101
// Initialize cloud
102102
d := cinder.NewDriver(endpoint, cluster)
103-
openstack.InitOpenStackProvider(cloudconfig, httpEndpoint)
103+
openstack.InitOpenStackProvider(cloudConfig, httpEndpoint)
104104
cloud, err := openstack.GetOpenStackProvider()
105105
if err != nil {
106106
klog.Warningf("Failed to GetOpenStackProvider: %v", err)

0 commit comments

Comments
 (0)