Skip to content

Commit 3b8158a

Browse files
committed
Fix unknown field dereferences which cause the build failures
example/main.go:36:3: unknown field 'TargetIqn' in struct literal of type iscsi.Connector example/main.go:38:3: unknown field 'TargetPortals' in struct literal of type iscsi.Connector example/main.go:74:20: c.TargetIqn undefined (type iscsi.Connector has no field or method TargetIqn) example/main.go:74:33: c.TargetPortals undefined (type iscsi.Connector has no field or method TargetPortals) make: *** [Makefile:11: build] Error 2 Signed-off-by: Humble Chirammal <[email protected]>
1 parent 95978a1 commit 3b8158a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iscsi/iscsi.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ type Connector struct {
5959
CheckInterval int32 `json:"check_interval"`
6060
DoDiscovery bool `json:"do_discovery"`
6161
DoCHAPDiscovery bool `json:"do_chap_discovery"`
62+
TargetIqn string `json:"target_iqn"`
63+
TargetPortals []string `json:"target_portals"`
6264
}
6365

6466
func init() {

0 commit comments

Comments
 (0)