Skip to content

Commit

Permalink
Merge pull request #737 from BenoitKnecht/flavors-ephemeral
Browse files Browse the repository at this point in the history
Add Ephemeral attribute to Flavor struct
  • Loading branch information
jtopjian committed Jan 28, 2018
2 parents a3e3dd5 + 0b8b348 commit 9746ef6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openstack/compute/v2/flavors/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ type Flavor struct {

// IsPublic indicates whether the flavor is public.
IsPublic bool `json:"os-flavor-access:is_public"`

// Ephemeral is the amount of ephemeral disk space, measured in GB.
Ephemeral int `json:"OS-FLV-EXT-DATA:ephemeral"`
}

func (r *Flavor) UnmarshalJSON(b []byte) error {
Expand Down

0 comments on commit 9746ef6

Please sign in to comment.