mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
add more log
This commit is contained in:
@@ -755,6 +755,7 @@ func (self *SRegion) CreateInstance(name string, imageId string, instanceType st
|
||||
} else {
|
||||
// 包年包月
|
||||
err = cloudprovider.WaitCreated(10*time.Second, 180*time.Second, func() bool {
|
||||
log.Debugf("WaitCreated %s", _id)
|
||||
order, e := self.GetOrder(_id)
|
||||
if e != nil {
|
||||
log.Debugf(e.Error())
|
||||
|
||||
@@ -125,7 +125,8 @@ func doListPart(doList listFunc, queries map[string]string, result interface{})
|
||||
|
||||
func DoGet(doGet getFunc, id string, queries map[string]string, result interface{}) error {
|
||||
if len(id) == 0 {
|
||||
return fmt.Errorf(" id should not be empty")
|
||||
resultType := reflect.Indirect(reflect.ValueOf(result)).Type()
|
||||
return fmt.Errorf(" Get %s id should not be empty", resultType.Name())
|
||||
}
|
||||
|
||||
ret, err := doGet(id, queries)
|
||||
|
||||
Reference in New Issue
Block a user