We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02ffc6 commit 8d25dcfCopy full SHA for 8d25dcf
src/baas/postgresql/index.js
@@ -103,8 +103,12 @@ class Postgresql {
103
104
async remove(inputs = {}) {
105
const { dBInstanceName } = inputs
106
- // need circle for deleting, after host status is 6, then we can delete it
107
- await deleteDbInstance(this.capi, dBInstanceName)
+
+ const dbDetail = await getDbInstanceDetail(this.capi, dBInstanceName)
108
+ if (dbDetail && dbDetail.DBInstanceName) {
109
+ // need circle for deleting, after host status is 6, then we can delete it
110
+ await deleteDbInstance(this.capi, dBInstanceName)
111
+ }
112
return {}
113
}
114
0 commit comments