Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
ciao-cli: Remove disk_mb parsing from workload creation
Browse files Browse the repository at this point in the history
Remove DiskMB from the structure used when creating a workload as this
has no effect right now.

Fixes: #1052

Signed-off-by: Rob Bradford <[email protected]>
  • Loading branch information
rbradford committed Jan 24, 2017
1 parent 345a8e9 commit 8963f02
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions ciao-cli/workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ type disk struct {
}

type defaultResources struct {
VCPUs int `yaml:"vcpus"`
MemMB int `yaml:"mem_mb"`
DiskMB int `yaml:"disk_mb"`
VCPUs int `yaml:"vcpus"`
MemMB int `yaml:"mem_mb"`
}

// we currently only use the first disk due to lack of support
Expand Down Expand Up @@ -268,12 +267,6 @@ func optToReq(opt workloadOptions, req *types.Workload) error {
}
req.Defaults = append(req.Defaults, r)

r = payloads.RequestedResource{
Type: payloads.DiskMB,
Value: defaults.DiskMB,
}
req.Defaults = append(req.Defaults, r)

return nil
}

Expand Down

0 comments on commit 8963f02

Please sign in to comment.