Merge pull request #6918 from ioito/hotfix/qx-azure-project-sync

fix: 避免azure同步项目失败
This commit is contained in:
Zexi Li
2020-06-24 12:57:26 +08:00
committed by GitHub
+1 -1
View File
@@ -470,7 +470,7 @@ func (self *SAzureClient) CreateResourceGroup(name, location string) (*SResource
if err != nil {
return nil, errors.Wrap(err, "getDefaultClient")
}
if len(location) == 0 || len(self.iregions) == 0 {
if len(location) == 0 && len(self.iregions) == 0 {
return nil, fmt.Errorf("missing location info")
}
if len(location) == 0 {