Skip to content

Commit

Permalink
required change to GetTargetId
Browse files Browse the repository at this point in the history
  • Loading branch information
jskazinski authored and David-T-White committed Sep 21, 2023
1 parent fafb0a0 commit f7646ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"strings"

storageapitypes "github.com/Seagate/seagate-exos-x-api-go/pkg/common"
storageapi "github.com/Seagate/seagate-exos-x-api-go/pkg/exosx"

"github.com/Seagate/seagate-exos-x-csi/pkg/common"
"github.com/Seagate/seagate-exos-x-csi/pkg/storage"
Expand Down Expand Up @@ -126,7 +127,7 @@ func (controller *Controller) CreateVolume(ctx context.Context, req *csi.CreateV

if storageProtocol == common.StorageProtocolISCSI {
// Fill iSCSI context parameters
targetId, err1 := controller.client.Info.GetTargetId("iSCSI")
targetId, err1 := storageapi.GetTargetId(controller.client.Info, "iSCSI")
if err1 != nil {
klog.Errorf("++ GetTargetId error: %v", err1)
}
Expand Down

0 comments on commit f7646ab

Please sign in to comment.