Ko-dany opened a new pull request, #4046:
URL: https://github.com/apache/ambari/pull/4046

   ## What changes were proposed in this pull request?
   Jira Ticket: https://issues.apache.org/jira/browse/AMBARI-26538
   The variable stack_version is used before initialization, which throws an 
error when using Ranger.
   
   ```
   # 
ambari-common/src/main/python/resource_management/libraries/functions/setup_ranger_plugin_xml.py
   
   def setup_ranger_plugin(...):
   if not plugin_home:
     stack_root = Script.get_stack_root()
     service_name = str(service_name).lower()
     plugin_home = 
format("{stack_root}/{stack_version}/ranger-{service_name}-plugin/")
   
   #...
   
   if stack_version_override is None:
     stack_version = get_stack_version(component_select_name)
   else:
     stack_version = stack_version_override
   ```
   
   ## How was this patch tested?
   
   Locally tested


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org
For additional commands, e-mail: dev-h...@ambari.apache.org

Reply via email to