Skip to content

Commit

Permalink
fix builder.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jan 31, 2023
1 parent 994c6b8 commit c78ca38
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions haivision/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ func BuildHaivision(url string, debug bool, username string, password string, he
Value: respSessionId.Response.SessionID,
})
//
deviceResponse, err = haivisionClient.GetDeviceInfo()
deviceResponse, err := haivisionClient.GetDeviceInfo()
if err != nil {
return nil, err
}
o.DeviceID = deviceResponse.ID
o.HType = deviceResponse.Type
if len(deviceResponse.Responses) > 0 {
haivisionClient.DeviceID = deviceResponse.Responses[0].ID
haivisionClient.HType = deviceResponse.Responses[0].Type
}
//
if header != nil {
// Headers for all request
Expand Down

0 comments on commit c78ca38

Please sign in to comment.