Remove the unused assignment for uuid variable

Because the uuid is not used in this function, so we should remove the codes
related to uuid.

Change-Id: I47c748474e6d3aa5850239859bd021b4f6d2e203
Story: 2006065
Task: 34780
Signed-off-by: Tao Li <litao3721@126.com>
This commit is contained in:
Tao Li 2019-07-01 09:52:19 +08:00
parent 2cbb73f862
commit 5230750c55

View File

@ -306,17 +306,15 @@ string mtcHttpSvr_vim_req ( char * buffer_ptr,
nodeLinkClass * obj_ptr = get_mtcInv_ptr () ;
string response = "" ;
string severity = "" ;
string uuid = "" ;
string hostname = "" ;
int rc1 = jsonUtil_get_key_val ( buffer_ptr, MTC_JSON_SEVERITY, severity );
int rc2 = jsonUtil_get_key_val ( buffer_ptr, MTC_JSON_INV_NAME, uuid );
int rc3 = jsonUtil_get_key_val ( buffer_ptr, MTC_JSON_INV_NAME, hostname );
int rc2 = jsonUtil_get_key_val ( buffer_ptr, MTC_JSON_INV_NAME, hostname );
jlog ("%s '%s' request\n", hostname.c_str(), getHttpCmdType_str(http_cmd));
if ( rc1 | rc2 | rc3 )
if ( rc1 | rc2 )
{
wlog ("Failed to parse command key values (%d:%d:%d)\n", rc1, rc2, rc3 );
wlog ("Failed to parse command key values (%d:%d)\n", rc1, rc2);
response = "{" ;
response.append (" \"status\" : \"fail\"");
response.append (",\"reason\" : \"command parse error\"");