@@ -121,6 +121,7 @@ func generateDriverConfigFile(testParams *testParameters) (string, error) {
121
121
var snapshotClassName string
122
122
// If snapshot class is passed in as argument, include snapshot specific driver capabiltiites.
123
123
if testParams .snapshotClassFile != "" {
124
+ if testParams .snapshotClassFile != "" {
124
125
caps = append (caps , "snapshotDataSource" )
125
126
// Update the absolute file path pointing to the snapshot class file, if it is provided as an argument.
126
127
absSnapshotClassFilePath = filepath .Join (testParams .pkgDir , testConfigDir , testParams .snapshotClassFile )
@@ -130,12 +131,8 @@ func generateDriverConfigFile(testParams *testParameters) (string, error) {
130
131
}
131
132
132
133
var absVacFilePath string
133
- var vacName string
134
134
if testParams .volumeAttributesClassFile != "" {
135
135
absVacFilePath = filepath .Join (testParams .pkgDir , testConfigDir , testParams .volumeAttributesClassFile )
136
- vacName = testParams .volumeAttributesClassFile [:strings .LastIndex (testParams .volumeAttributesClassFile , "." )]
137
- } else {
138
- vacName = "no-vac"
139
136
}
140
137
141
138
if ! strings .Contains (testParams .storageClassFile , "sc-extreme" ) {
@@ -160,7 +157,6 @@ func generateDriverConfigFile(testParams *testParameters) (string, error) {
160
157
SnapshotClassFile : absSnapshotClassFilePath ,
161
158
SnapshotClass : snapshotClassName ,
162
159
VolumeAttributesClassFile : absVacFilePath ,
163
- VolumeAttributesClass : vacName ,
164
160
SupportedFsType : fsTypes ,
165
161
Capabilities : caps ,
166
162
MinimumVolumeSize : minimumVolumeSize ,
0 commit comments