From d97890fc4e779aa683f91da68df45225ea6dff2f Mon Sep 17 00:00:00 2001 From: Victor Grau Serrat Date: Tue, 6 Feb 2018 11:43:41 -0700 Subject: [PATCH] BLD: marketplace: moving AUTH_SERVER paths to /marketplace/* --- catalyst/marketplace/marketplace.py | 2 +- catalyst/marketplace/utils/auth_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/catalyst/marketplace/marketplace.py b/catalyst/marketplace/marketplace.py index a5e7d4f5..61ed7fec 100644 --- a/catalyst/marketplace/marketplace.py +++ b/catalyst/marketplace/marketplace.py @@ -658,7 +658,7 @@ class Marketplace: for file in filenames: files.append(('file', open(file, 'rb'))) - r = requests.post('{}/publish'.format(AUTH_SERVER), + r = requests.post('{}/marketplace/publish'.format(AUTH_SERVER), files=files, headers=headers) diff --git a/catalyst/marketplace/utils/auth_utils.py b/catalyst/marketplace/utils/auth_utils.py index 452dadb7..d761cf8d 100644 --- a/catalyst/marketplace/utils/auth_utils.py +++ b/catalyst/marketplace/utils/auth_utils.py @@ -27,7 +27,7 @@ def get_key_secret(pubAddr, dataset): """ session = requests.Session() - response = session.get('{}/getkeysecret'.format(AUTH_SERVER), + response = session.get('{}/marketplace/getkeysecret'.format(AUTH_SERVER), headers={ 'pubAddr': pubAddr, 'dataset': dataset})