change pollhosts to return analysis_details only when analysisType given in input

Signed-off-by: Gang Wei <gang.wei@intel.com>
change pollhosts to return analysis_details only when analysisType given in input (Part2)
Signed-off-by: Emily <lijuan.zhang@intel.com>