Эх сурвалжийг харах

HUE-9373 [core] Rename keytab_reinit_frequency variable at Python level

That way existing configuration still work.
Note: in https://github.com/cloudera/hue/pull/1161 we actually should
have made it backward compatible
Romain 5 жил өмнө
parent
commit
7af5cced77

+ 1 - 1
desktop/conf.dist/hue.ini

@@ -716,7 +716,7 @@
     # Kerberos principal name for Hue
     ## hue_principal=hue/hostname.foo.com
     # Frequency in seconds with which Hue will renew its keytab
-    ## keytab_reinit_frequency=3600
+    ## REINIT_FREQUENCY=3600
     # Path to keep Kerberos credentials cached
     ## ccache_path=/var/run/hue/hue_krb5_ccache
     # Path to kinit

+ 1 - 1
desktop/conf/pseudo-distributed.ini.tmpl

@@ -718,7 +718,7 @@
     # Kerberos principal name for Hue
     ## hue_principal=hue/hostname.foo.com
     # Frequency in seconds with which Hue will renew its keytab
-    ## keytab_reinit_frequency=3600
+    ## REINIT_FREQUENCY=3600
     # Path to keep Kerberos credentials cached
     ## ccache_path=/var/run/hue/hue_krb5_ccache
     # Path to kinit

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

@@ -868,7 +868,7 @@ KERBEROS = ConfigSection(
       help=_("Kerberos principal name for Hue. Typically 'hue/hostname.foo.com'."),
       type=str,
       default="hue/%s" % socket.getfqdn()),
-    KEYTAB_REINIT_FREQUENCY=Config(
+    REINIT_FREQUENCY=Config(
       key='reinit_frequency',
       help=_("Frequency in seconds with which Hue will renew its keytab."),
       type=int,

+ 1 - 1
desktop/core/src/desktop/kt_renewer.py

@@ -107,4 +107,4 @@ def run():
 
   while True:
     renew_from_kt()
-    time.sleep(CONF.KEYTAB_REINIT_FREQUENCY.get())
+    time.sleep(CONF.REINIT_FREQUENCY.get())