Forráskód Böngészése

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

Romain Rigaux 4 éve
szülő
commit
e024246bf0

+ 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():
   """