Merge pull request #4383 from ioito/bugfix/qx-cloudaccount-update

fix: 修复接收参数异常问题
This commit is contained in:
yunion-ci-robot
2019-12-28 14:17:31 +08:00
committed by GitHub
+1 -1
View File
@@ -441,7 +441,7 @@ func (self *SCloudaccount) PerformUpdateCredential(ctx context.Context, userCred
}
input := cloudprovider.SCloudaccountCredential{}
err = data.Unmarshal(input)
err = data.Unmarshal(&input)
if err != nil {
return nil, httperrors.NewInputParameterError("failed to unmarshal input params: %v", err)
}