From fc5883226607079c2b478663d3b9361f1ed1c352 Mon Sep 17 00:00:00 2001 From: Igal Tsoiref Date: Wed, 24 Jun 2020 08:35:31 +0300 Subject: [PATCH] Fixing issue with wait for inventory url in delete nodes --- discovery-infra/bm_inventory_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery-infra/bm_inventory_api.py b/discovery-infra/bm_inventory_api.py index c626fb7..a1e98a2 100644 --- a/discovery-infra/bm_inventory_api.py +++ b/discovery-infra/bm_inventory_api.py @@ -132,6 +132,6 @@ def create_client(inventory_url=None, wait_for_url=True): i_url = utils.get_service_url("bm-inventory") log.info("Inventory URL %s", i_url) client = InventoryClient(inventory_url=i_url) - if not wait_for_url: + if wait_for_url: client.wait_for_api_readiness() return client