Unverified Commit 7eaf1822 authored by Michael Schurter's avatar Michael Schurter Committed by GitHub
Browse files

Merge pull request #3596 from tbartelmess/b-min-resource-errors

Fixed error messges for MeetsMinResources
parents fdafc294 6b74643a
Showing with 2 additions and 2 deletions
+2 -2
......@@ -1293,10 +1293,10 @@ func (r *Resources) MeetsMinResources() error {
mErr.Errors = append(mErr.Errors, fmt.Errorf("minimum CPU value is %d; got %d", minResources.CPU, r.CPU))
}
if r.MemoryMB < minResources.MemoryMB {
mErr.Errors = append(mErr.Errors, fmt.Errorf("minimum MemoryMB value is %d; got %d", minResources.CPU, r.MemoryMB))
mErr.Errors = append(mErr.Errors, fmt.Errorf("minimum MemoryMB value is %d; got %d", minResources.MemoryMB, r.MemoryMB))
}
if r.IOPS < minResources.IOPS {
mErr.Errors = append(mErr.Errors, fmt.Errorf("minimum IOPS value is %d; got %d", minResources.CPU, r.IOPS))
mErr.Errors = append(mErr.Errors, fmt.Errorf("minimum IOPS value is %d; got %d", minResources.IOPS, r.IOPS))
}
for i, n := range r.Networks {
if err := n.MeetsMinResources(); err != nil {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment