Updated get_host_list API to take into account the value 2 for varnish_enabled parameter.