Skip to content

Commit 9ab5bfe

Browse files
author
Lou
committed
revert flag DoDiscoverydb in struct Connector
Signed-off-by: Lou <[email protected]>
1 parent c277ffc commit 9ab5bfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iscsi/iscsi.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type Connector struct {
5252
Multipath bool `json:"multipath"`
5353
RetryCount int32 `json:"retry_count"`
5454
CheckInterval int32 `json:"check_interval"`
55-
DoDiscoverydb bool `json:"do_discovery"`
55+
DoDiscovery bool `json:"do_discovery"`
5656
DoCHAPDiscovery bool `json:"do_chap_discovery"`
5757
}
5858

@@ -281,7 +281,7 @@ func Connect(c Connector) (string, error) {
281281
}
282282
}
283283

284-
if c.DoDiscoverydb {
284+
if c.DoDiscovery {
285285
// build discoverydb and discover iscsi target
286286
if err := Discoverydb(p, iFace, c.DiscoverySecrets, c.DoCHAPDiscovery); err != nil {
287287
debug.Printf("Error in discovery of the target: %s\n", err.Error())

0 commit comments

Comments
 (0)