From a856d54c8df7bf3a0212b4c7fd8f18a6a6b91449 Mon Sep 17 00:00:00 2001 From: xuegao Date: Fri, 18 Dec 2020 10:37:23 +0100 Subject: Add basic auth header Add basic auth header for sdc-backend-init python scripts. Issue-ID: OJSI-273 Signed-off-by: xuegao Change-Id: I3559d5792509db0f65b202a731545083c7c91c96 Signed-off-by: xuegao --- catalog-be/src/main/resources/scripts/sdcBePy/consumers/run.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'catalog-be/src/main/resources/scripts/sdcBePy/consumers/run.py') 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 1fb766227b..8ea1d1cf64 100644 --- a/catalog-be/src/main/resources/scripts/sdcBePy/consumers/run.py +++ b/catalog-be/src/main/resources/scripts/sdcBePy/consumers/run.py @@ -7,8 +7,8 @@ from sdcBePy.consumers.models.consumerCandidateList import get_consumers 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) +def be_consumers_init(be_ip, be_port, header, protocol, consumer_candidate_list): + sdc_be_proxy = SdcBeProxy(be_ip, be_port, header, protocol) 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: @@ -28,8 +28,8 @@ def be_consumers_init(be_ip, be_port, protocol, consumer_candidate_list): def main(): - be_ip, be_port, protocol = get_args() - be_consumers_init(be_ip, be_port, protocol, get_consumers()) + be_ip, be_port, header, protocol = get_args() + be_consumers_init(be_ip, be_port, header, protocol, get_consumers()) if __name__ == '__main__': -- cgit 1.2.3-korg