Skip to content

Commit bfa0e26

Browse files
committed
fix: pg exist judgement
1 parent bd817d0 commit bfa0e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/baas/postgresql/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Postgresql {
4242

4343
let dbDetail = await getDbInstanceDetail(this.capi, dBInstanceName)
4444

45-
if (dbDetail && dbDetail.DBInstanceName) {
45+
if (dbDetail && dbDetail.DBInstanceName && dbDetail.Zone === zone) {
4646
const publicAccess = getDbExtranetAccess(dbDetail.DBInstanceNetInfo)
4747
// exist and public access config different, update db instance
4848
if (publicAccess !== extranetAccess) {

0 commit comments

Comments
 (0)