fix iops bug and increase test matrix coverage

This commit is contained in:
Alex Dadgar
2018-12-11 15:23:39 -08:00
parent 926428fe0f
commit aa59ea6ac7
2 changed files with 10 additions and 1 deletions

View File

@@ -853,7 +853,11 @@ func ApiResourcesToStructs(in *api.Resources) *structs.Resources {
out := &structs.Resources{
CPU: *in.CPU,
MemoryMB: *in.MemoryMB,
IOPS: *in.IOPS, // COMPAT(0.10): Only being used to issue warnings
}
// COMPAT(0.10): Only being used to issue warnings
if in.IOPS != nil {
out.IOPS = *in.IOPS
}
if l := len(in.Networks); l != 0 {