Skip to content

Commit

Permalink
Merge pull request #59 from hamzy/Fix-nil-nextURL
Browse files Browse the repository at this point in the history
Fix nil nextURL
  • Loading branch information
openshift-ci[bot] committed Oct 20, 2023
2 parents 43f2ca1 + 616ca08 commit 5fe8e0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/client/powervs_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ func (p *powerVSClient) GetCloudServiceInstances() ([]resourcecontrollerv2.Resou
if err != nil {
return false, "", err
}
if nextURL == nil {
return true, "", nil
}
return false, *nextURL, nil
}
return true, "", nil
Expand Down Expand Up @@ -370,6 +373,9 @@ func (p *powerVSClient) GetCloudServiceInstanceByName(name string) (*resourcecon
if err != nil {
return false, "", err
}
if nextURL == nil {
return true, "", nil
}
return false, *nextURL, nil
}
return true, "", nil
Expand Down

0 comments on commit 5fe8e0c

Please sign in to comment.