There are errors in executing session-add-job in v2 interface

such as:
freezer session-add-job  --session-id 52878644aab14446a2f3c97b13c48190
--job-id 3c421a3c42d447e2ab514c0d21cb595f
[*] Error 500: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>

Change-Id: I36bbbc817bdbb86b9590504ec3d8323be928e9bd
This commit is contained in:
gengchc2 2018-10-18 00:07:09 -07:00 committed by gecong
parent 4db4a6c818
commit 45f06cba38
1 changed files with 2 additions and 1 deletions

View File

@ -328,7 +328,8 @@ class SessionsJob(resource.BaseResource):
patch_doc=session_update_doc)
# --- update job object
session_doc = self.db.get_session(user_id=user_id,
session_id=session_id)
session_id=session_id,
project_id=project_id)
job_update_doc = {
'session_id': session_id,
'session_tag': session_doc['session_tag'],