Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hzy46 committed Aug 12, 2020
1 parent e203fd4 commit 7c4878d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database-controller/src/common/framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,14 @@ async function synchronizeRequest(snapshot, addOns) {
// There may be multiple calls of synchronizeRequest.
// Poller and write-merger uses this method.
try {
await k8s.getFramework(snapshot.getName());
// if framework exists
// Try to modify the framework
const frameworkResponse = await synchronizeModify(snapshot);
logger.info(
`Request of framework ${snapshot.getName()} is successfully patched.`,
);
return frameworkResponse;
} catch (err) {
// If framework doesn't exist, create it.
if (err.response && err.response.statusCode === 404) {
const frameworkResponse = await synchronizeCreate(snapshot, addOns);
logger.info(
Expand Down

0 comments on commit 7c4878d

Please sign in to comment.