Skip to content

Commit 1a96f25

Browse files
pawcykcaEmilienM
authored andcommitted
Remove the non-existent Type field from the response
1 parent 184da06 commit 1a96f25

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

openstack/db/v1/instances/results.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import (
1414
type Volume struct {
1515
// The size in GB of the volume
1616
Size int
17-
// The type of the volume
18-
Type string
1917

2018
Used float64
2119
}

openstack/db/v1/instances/testing/fixtures.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ var instanceGet = `
8787
"updated": "` + timestamp + `",
8888
"volume": {
8989
"size": 1,
90-
"type": "ssd",
9190
"used": 0.12
9291
},
9392
"addresses": [
@@ -223,7 +222,7 @@ var expectedInstance = instances.Instance{
223222
},
224223
Name: "json_rack_instance",
225224
Status: "BUILD",
226-
Volume: instances.Volume{Size: 2, Type: "ssd"},
225+
Volume: instances.Volume{Size: 2},
227226
Datastore: datastores.DatastorePartial{
228227
Type: "mysql",
229228
Version: "5.6",
@@ -246,7 +245,7 @@ var expectedGetInstance = instances.Instance{
246245
},
247246
Name: "test",
248247
Status: "ACTIVE",
249-
Volume: instances.Volume{Size: 1, Type: "ssd", Used: 0.12},
248+
Volume: instances.Volume{Size: 1, Used: 0.12},
250249
Datastore: datastores.DatastorePartial{
251250
Type: "mysql",
252251
Version: "5.6",
@@ -274,7 +273,7 @@ var expectedInstanceWithFault = instances.Instance{
274273
},
275274
Name: "json_rack_instance",
276275
Status: "BUILD",
277-
Volume: instances.Volume{Size: 2, Type: "ssd"},
276+
Volume: instances.Volume{Size: 2},
278277
Datastore: datastores.DatastorePartial{
279278
Type: "mysql",
280279
Version: "5.6",

0 commit comments

Comments
 (0)