diff options
Diffstat (limited to 'catalog-be/src/main/resources/scripts/sdcBePy/consumers')
-rw-r--r-- | catalog-be/src/main/resources/scripts/sdcBePy/consumers/run.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/catalog-be/src/main/resources/scripts/sdcBePy/consumers/run.py b/catalog-be/src/main/resources/scripts/sdcBePy/consumers/run.py index 59a0b610d8..1fb766227b 100644 --- a/catalog-be/src/main/resources/scripts/sdcBePy/consumers/run.py +++ b/catalog-be/src/main/resources/scripts/sdcBePy/consumers/run.py @@ -1,6 +1,7 @@ import time -from sdcBePy.common.healthCheck import check_backend, RETRY_ATTEMPTS, get_args +from sdcBePy import properties +from sdcBePy.common.healthCheck import check_backend, get_args from sdcBePy.common.sdcBeProxy import SdcBeProxy from sdcBePy.consumers.models.consumerCandidateList import get_consumers from sdcBePy.users.run import colors @@ -8,7 +9,7 @@ from sdcBePy.users.run import colors def be_consumers_init(be_ip, be_port, protocol, consumer_candidate_list): sdc_be_proxy = SdcBeProxy(be_ip, be_port, protocol) - if check_backend(sdc_be_proxy, RETRY_ATTEMPTS): + if check_backend(sdc_be_proxy, properties.retry_attempts): for consumer in consumer_candidate_list: if sdc_be_proxy.check_user(consumer.consumer_name) != 200: result = sdc_be_proxy.create_consumer(*consumer.get_parameters()) |