def get_vod_core(host, port): response = None for i in range(max_try): try: response = http_request('GET', host, port, vod_core_url) break except: time.sleep(0.1) return response
def get_chunk_pool(host, port): response = None for i in range(max_try): try: response = http_request('GET', host, port, chunk_pool_url) break except: time.sleep(0.1) return response
def get_version(host, port): response = None print host, port for i in range(max_try): try: response = http_request('GET', host, port, version_url) break except: time.sleep(0.1) return response