Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 04bb0a7

Browse files
committed
read interface for baremetal fixed
1 parent 3c75ac6 commit 04bb0a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcore/utils.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,8 @@ func extractInstanceInterfaceIntoMap(interfaces []interface{}) (map[string]Order
258258
}
259259
I.FloatingIP = &fip
260260
}
261-
orderedInt := OrderedInterfaceOpts{I, inter["order"].(int)}
261+
o, _ := inter["order"].(int)
262+
orderedInt := OrderedInterfaceOpts{I, o}
262263
Interfaces[I.SubnetID] = orderedInt
263264
Interfaces[I.NetworkID] = orderedInt
264265
Interfaces[I.PortID] = orderedInt

0 commit comments

Comments
 (0)