Skip to content

TargetIqn unused and misleading in example #30

@ressu

Description

@ressu

In example/main.go the example uses the TargetIqn and TargetPortals fields in the connector:

// Specify the target iqn we're dealing with
TargetIqn: *iqn,
// List of portals must be >= 1 (>1 signals multipath/mpio)
TargetPortals: tgtp,

The usage of these fields was removed in #13, which transfers those features into the Targets struct. The fields should be removed from the struct since they are no longer referenced and the main.go should be updated to reflect the proper state of the library. Or if the intent is to keep them in the struct as legacy support, the fields should be clearly marked as obsolete.

Metadata

Metadata

Assignees

Labels

lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions