mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
fix iops bug and increase test matrix coverage
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user