Skip to content

Commit f6f493a

Browse files
committed
fixes type conversion from schema to zos for gpu
Signed-off-by: Ashraf Fouda <ashraf.m.fouda@gmail.com>
1 parent 0c2a461 commit f6f493a

File tree

1 file changed

+1
-1
lines changed
  • grid-client/workloads

1 file changed

+1
-1
lines changed

grid-client/workloads/vm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func NewVMFromMap(vm map[string]interface{}) *VM {
7474

7575
var gpus []zos.GPU
7676
for _, v := range vm["gpus"].([]interface{}) {
77-
gpus = append(gpus, v.(zos.GPU))
77+
gpus = append(gpus, zos.GPU(v.(string)))
7878
}
7979

8080
return &VM{

0 commit comments

Comments
 (0)