[ 
https://issues.apache.org/jira/browse/AMBARI-9285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yusaku Sako resolved AMBARI-9285.
---------------------------------
    Resolution: Fixed

Committed to trunk.

> Add default values for ranger plugin properties
> -----------------------------------------------
>
>                 Key: AMBARI-9285
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9285
>             Project: Ambari
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Velmurugan Periasamy
>            Assignee: Gautam Borad
>             Fix For: 2.0.0
>
>
> {noformat}
> if hdp_stack_version != "" and compare_versions(hdp_stack_version, '2.2') >= 
> 0:
>     # setting flag value for ranger hdfs plugin
>     enable_ranger_hdfs = False
>     user_input = 
> config['configurations']['ranger-hdfs-plugin-properties']['ranger-hdfs-plugin-enabled']
>         <-------------------------------  No default value provided
> {noformat}
> That line, and others like it, must make safeguards by checking property 
> existence.  Can use a construct like below so that it fails safely.
> {noformat}
> user_input = 
> default('/configurations/ranger-hdfs-plugin-properties/ranger-hdfs-plugin-enabled',
>  'no')
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to