Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari 2.1 advanced configs conditions

Highlighted

Ambari 2.1 advanced configs conditions

New Contributor

I am experimenting with building custom service in ambari 2.1 and I am trying to build a theme. When I put "if" conditions in theme sub-sections to show/hide sections depending on on/off flags, it does not work. Below is an example.

{
  "config": "config1",
  "subsection-name": "subsection-conf-col1",
  "depends-on": [
    {
      "configs":[
        "conf-site/CONF_ONE"],
      "if": "${conf-site/CONF_ONE} === one",
      "then": {
        "property_value_attributes": {
          "visible": false}
      },
      "else": {
        "property_value_attributes": {
          "visible": true}
      }
    }
  ]
},
Would you please let me know what I am doing wrong?
Don't have an account?
Coming from Hortonworks? Activate your account here