Skip to content

Commit

Permalink
Remove the non-existent Type field from the response
Browse files Browse the repository at this point in the history
  • Loading branch information
pawcykca authored and EmilienM committed Nov 23, 2022
1 parent 184da06 commit 1a96f25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions openstack/db/v1/instances/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import (
type Volume struct {
// The size in GB of the volume
Size int
// The type of the volume
Type string

Used float64
}
Expand Down
7 changes: 3 additions & 4 deletions openstack/db/v1/instances/testing/fixtures.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ var instanceGet = `
"updated": "` + timestamp + `",
"volume": {
"size": 1,
"type": "ssd",
"used": 0.12
},
"addresses": [
Expand Down Expand Up @@ -223,7 +222,7 @@ var expectedInstance = instances.Instance{
},
Name: "json_rack_instance",
Status: "BUILD",
Volume: instances.Volume{Size: 2, Type: "ssd"},
Volume: instances.Volume{Size: 2},
Datastore: datastores.DatastorePartial{
Type: "mysql",
Version: "5.6",
Expand All @@ -246,7 +245,7 @@ var expectedGetInstance = instances.Instance{
},
Name: "test",
Status: "ACTIVE",
Volume: instances.Volume{Size: 1, Type: "ssd", Used: 0.12},
Volume: instances.Volume{Size: 1, Used: 0.12},
Datastore: datastores.DatastorePartial{
Type: "mysql",
Version: "5.6",
Expand Down Expand Up @@ -274,7 +273,7 @@ var expectedInstanceWithFault = instances.Instance{
},
Name: "json_rack_instance",
Status: "BUILD",
Volume: instances.Volume{Size: 2, Type: "ssd"},
Volume: instances.Volume{Size: 2},
Datastore: datastores.DatastorePartial{
Type: "mysql",
Version: "5.6",
Expand Down

0 comments on commit 1a96f25

Please sign in to comment.