Drop the redundant code

The get_host operation is redundant and should be dropped.

Closes-Bug: #1823826
Signed-off-by: Tao Li <litao3721@126.com>

Change-Id: I62d436092ead426122b2cce680ba9aa398b8e80e
This commit is contained in:
Tao Li 2019-04-01 11:23:03 +08:00
parent 4b29c4c481
commit 0e4bf56f3c

View File

@ -844,10 +844,6 @@ void mtcHttpSvr_handler (struct evhttp_request *req, void *arg)
size_t len = strlen(CLIENT_SYSINV_URL) ;
uuid = (url_ptr+len) ;
hostname = obj_ptr->get_host(uuid) ;
if ( uuid.length() == UUID_LEN )
{
hostname = obj_ptr->get_host(uuid) ;
}
if (( http_cmd == EVHTTP_REQ_GET ) && ( client == CLIENT_VIM_SYSTEMS ))
{
http_status_code = obj_ptr->mtcVimApi_system_info ( response );