瀏覽代碼

[raz] Auto turn on when the Raz API is specified

Romain Rigaux 4 年之前
父節點
當前提交
e024246bf0
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 2
      desktop/core/src/desktop/conf.py
  2. 1 1
      desktop/libs/hadoop/src/hadoop/core_site.py

+ 1 - 2
desktop/core/src/desktop/conf.py

@@ -2094,7 +2094,6 @@ CONNECTORS = UnspecifiedConfigSection(
 )
 
 
-
 RAZ = ConfigSection(
   key='raz',
   help=_("""Configuration for RAZ service integration"""),
@@ -2103,7 +2102,7 @@ RAZ = ConfigSection(
       key='is_enabled',
       help=_('Turns on the integration as ready to use'),
       type=coerce_bool,
-      default=False,
+      dynamic_default=get_raz_api_url,
     ),
     API_URL=Config(
         key='api_url',

+ 1 - 1
desktop/libs/hadoop/src/hadoop/core_site.py

@@ -123,7 +123,7 @@ def get_raz_api_url():
 
   S3 only. Add check for Azure when supported.
   """
-  return get_conf().get(_CNF_S3A_RAZ_API_URL, 'https://localhost:8080')
+  return get_conf().get(_CNF_S3A_RAZ_API_URL)
 
 def get_raz_cluster_name():
   """