Skip to content

Commit

Permalink
Fix make command error
Browse files Browse the repository at this point in the history
Fixed the nested dependency version issue.

Fixed the code style issues found by Flake8.

Signed-off-by: xichen1 <[email protected]>
  • Loading branch information
xichen1 committed Jun 30, 2023
1 parent efc6e3b commit da7ac48
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/api-engine/api/lib/agent/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ def get(self):
try:
return self._agent.get()
except Exception as e:
return False
LOG.error(e)
return False
4 changes: 2 additions & 2 deletions src/api-engine/api/routes/node/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,11 +574,11 @@ def destroy(self, request, pk=None):
LOG.info("Retry to stop/delete container %d time(s).", i + 1)
try:
response = agent.stop()
if response != True:
if response is not True:
LOG.error("Failed when agent stops/deletes container: %s", response)
continue
response = agent.delete()
if response != True:
if response is not True:
LOG.error("Failed when agent stops/deletes container: %s", response)
continue
res = True
Expand Down
5 changes: 4 additions & 1 deletion src/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,8 @@
"src/**/*.less",
"config/**/*.js*",
"scripts/**/*.js"
]
],
"resolutions": {
"mockjs/commander": "^8.2.0"
}
}

0 comments on commit da7ac48

Please sign in to comment.