mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix: avoid sync project panic
This commit is contained in:
@@ -79,6 +79,9 @@ func (client *SQcloudClient) GetProjects() ([]SProject, error) {
|
||||
projects := []SProject{}
|
||||
params := map[string]string{"allList": "1"}
|
||||
resp, err := client.accountRequestRequest("DescribeProject", params)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "DescribeProject")
|
||||
}
|
||||
err = resp.Unmarshal(&projects)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "resp.Unmarshal")
|
||||
|
||||
Reference in New Issue
Block a user