Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1857

The value of RANGER_KMS_HOME logic is not correct in dba_script.py and db_setup.py, Like db_setup.py in admin, we should optimize them.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.7.1
    • 1.0.0, master
    • kms
    • Patch

    Description

      The value of RANGER_KMS_HOME logic is not correct in dba_script.py and db_setup.py, Like db_setup.py in admin, we should optimize them.
      The value of RANGER_KMS_HOME logic in dba_script.py is as following:

      if is_unix:
      	RANGER_KMS_HOME = os.getenv("RANGER_KMS_HOME")
      	if RANGER_KMS_HOME is None:
      		RANGER_KMS_HOME = os.getcwd()
      elif os_name == "WINDOWS":
      	RANGER_KMS_HOME = os.getenv("RANGER_KMS_HOME")
      

      The value of RANGER_ADMIN_HOME logic in admin is as following:

      RANGER_ADMIN_HOME = os.getenv("RANGER_ADMIN_HOME")
      if RANGER_ADMIN_HOME is None:
      	RANGER_ADMIN_HOME = os.getcwd()
      

      Attachments

        Activity

          People

            peng.jianhua peng.jianhua
            peng.jianhua peng.jianhua
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: