Skip to content

Commit 50045ff

Browse files
committed
wip: set default snapshot type to images
This is to run a full integration test with disk image snapshot. This commit is not part of the PR. Revert after all tests pass.
1 parent 0629d73 commit 50045ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/common/parameters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func ExtractAndDefaultParameters(parameters map[string]string, driverName string
136136
func ExtractAndDefaultSnapshotParameters(parameters map[string]string) (SnapshotParameters, error) {
137137
p := SnapshotParameters{
138138
StorageLocations: []string{},
139-
SnapshotType: DiskSnapshotType,
139+
SnapshotType: DiskImageType,
140140
}
141141
for k, v := range parameters {
142142
switch strings.ToLower(k) {

pkg/common/parameters_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func TestSnapshotParameters(t *testing.T) {
189189
parameters: nil,
190190
expectedSnapshotParames: SnapshotParameters{
191191
StorageLocations: []string{},
192-
SnapshotType: DiskSnapshotType,
192+
SnapshotType: DiskImageType,
193193
},
194194
expectError: false,
195195
},

0 commit comments

Comments
 (0)