-"""
+'''
/*-
* ============LICENSE_START=======================================================
* ONAP : APPC
*
* ============LICENSE_END=========================================================
*/
-"""
+'''
import time, datetime, json, os, sys, subprocess
import uuid
cherrypy.log("HostFile: " + HostFile)
# if NodeList and InventoryNames need to build host file
- if HaveInventoryNames & HaveNodeList:
+ if HaveInventoryNames and HaveNodeList:
cherrypy.log("Build host file from NodeList")
ret = buildHostsSysCall(input_json, PlaybookDir, inventory_names)
if ret < 0:
if TestRecord[input_data['Id']]['Output'] == {} and getresults_block:
cherrypy.log("*** Request blocked " + input_data['Id'])
- while TestRecord[input_data['Id']]['Output'] == {} \
- or 'StatusMessage' in TestRecord[input_data['Id']]['Result']:
- time.sleep(5)
+ # while TestRecord[input_data['Id']]['Output'] == {} \
+ # or 'StatusMessage' in TestRecord[input_data['Id']]['Result']:
+ while ActiveProcess[input_data['Id']].is_alive():
+ time.sleep(3)
cherrypy.log("*** Request released " + input_data['Id'])