From 0467ceccafeb75115d9d5c7514790e9bde426d12 Mon Sep 17 00:00:00 2001 From: Giulia Naponiello Date: Oct 10 2019 08:48:26 +0000 Subject: Use internal conf for the SFM2 API Signed-off-by: Giulia Naponiello --- diff --git a/conf/config.py b/conf/config.py index 991c518..38cc71f 100644 --- a/conf/config.py +++ b/conf/config.py @@ -302,6 +302,7 @@ class TestConfiguration(BaseConfiguration): KRB_AUTH_CCACHE_FILE = "freshmaker_cc_$pid_$tid" ERRATA_TOOL_SERVER_URL = "http://localhost/" # fake URL just for tests. + SFM2_API_URL = "https://localhost" # fake URL just for tests. class ProdConfiguration(BaseConfiguration): diff --git a/conf/configrh.py b/conf/configrh.py index 9e6d2f8..ae90077 100644 --- a/conf/configrh.py +++ b/conf/configrh.py @@ -49,6 +49,9 @@ class BaseConfiguration(config.BaseConfiguration): # replace with real value when deploy ERRATA_TOOL_SERVER_URL = '' + # replace with real value when deploy + SFM2_API_URL = '' + # Pulp server url, e.g. http://localhost/ PULP_SERVER_URL = '' diff --git a/freshmaker/config.py b/freshmaker/config.py index 757acd5..3de81a2 100644 --- a/freshmaker/config.py +++ b/freshmaker/config.py @@ -228,8 +228,9 @@ class Config(object): }, 'sfm2_api_url': { 'type': str, - 'default': 'https://sfm2.prodsec.redhat.com', - 'desc': 'SFM2 API URl'}, + 'default': '', + 'desc': 'SFM2 API URl' + }, 'lightblue_server_url': { 'type': str, 'default': '',