Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
fix(node): add missing discovery flag in iscsi connector
Browse files Browse the repository at this point in the history
  • Loading branch information
plaffitt committed Oct 28, 2020
1 parent cd98706 commit 9db3dc5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ func (driver *Driver) NodePublishVolume(ctx context.Context, req *csi.NodePublis
})
}
connector := &iscsi.Connector{
Targets: targets,
Lun: int32(lun),
Targets: targets,
Lun: int32(lun),
DoDiscovery: true,
}
path, err := iscsi.Connect(*connector)
if err != nil {
Expand Down

0 comments on commit 9db3dc5

Please sign in to comment.