Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5597

Ambari REST API: Rename host-groups in cluster create to host_groups for consistency across api

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:

      Description

      The host group field name is inconsistent across the blueprint and the cluster create body.
      In blueprints it is "host_groups" and in the cluster create call it is "host-groups".
      Change the field name in the cluster create call to "host_groups" as the rest of the api uses underscore.

      {
        "blueprint" : "single-node-test",
        "host_groups" :[
          { 
            "name" : "host_group_1",  
            "hosts" : [          
              { 
                "fqdn" : "test.novalocal"
              }
            ]
          }
        ]
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jspeidel John Speidel
                Reporter:
                jspeidel John Speidel
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: