Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: v.oleynikov <vasily.oleynikov@flant.com>
  • Loading branch information
duckhawk committed Jun 19, 2024
1 parent ee9d43c commit ad366dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/csi-huawei/host_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,26 @@ type NodeHostInfo struct {
// because the current host may not have an initiator, which should be judged by the caller and handled accordingly
func NewNodeHostInfo(ctx context.Context) (*NodeHostInfo, error) {
hostName, err := utils.GetHostName(ctx)
logrus.Infof("8 %s", err)
if err != nil {
log.AddContext(ctx).Errorf("get host name error: [%v]", err)
return nil, err
}

iscsiInitiator, err := proto.GetISCSIInitiator(ctx)
logrus.Infof("9 %s", err)
if err != nil {
log.AddContext(ctx).Infof("get ISCSI initiator error: [%v]", err)
}

fcInitiators, err := proto.GetFCInitiator(ctx)
logrus.Infof("10 %s", err)
if err != nil {
log.AddContext(ctx).Infof("get FC initiator error: [%v]", err)
}

roCEInitiator, err := proto.GetRoCEInitiator(ctx)
logrus.Infof("11 %s", err)
if err != nil {
log.AddContext(ctx).Infof("get RoCE initiator error: [%v]", err)
}
Expand Down

0 comments on commit ad366dd

Please sign in to comment.