mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
Merge pull request #11202 from ioito/automated-cherry-pick-of-#11201-upstream-release-3.7
Automated cherry pick of #11201: fix(region): show azure deploy failed error
This commit is contained in:
@@ -1044,6 +1044,13 @@ func (self *SInstance) GetProjectId() string {
|
||||
}
|
||||
|
||||
func (self *SInstance) GetError() error {
|
||||
if self.Properties.InstanceView != nil {
|
||||
for _, status := range self.Properties.InstanceView.Statuses {
|
||||
if status.Code == "ProvisioningState/failed/AllocationFailed" {
|
||||
return errors.Errorf("%s %s", status.Code, status.Message)
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user