René Moser created CLOUDSTACK-9205: --------------------------------------
Summary: api: addCluster should not return a list as result Key: CLOUDSTACK-9205 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9205 Project: CloudStack Issue Type: Improvement Security Level: Public (Anyone can view this level - this is the default.) Components: API Reporter: René Moser Priority: Trivial Fix For: Future {{addCluster}} should not return a *list* (containing always one item, which was just created) as a result. h2. Actual: {code} $ cs addCluster clustername=foo hypervisor=Simulator podid=11de114b-733a-4826-ae73-e9fe7f2656db zoneid=720e3192-4453-4c92-8423-204549e1844a clustertype=CloudManaged { "cluster": [ { "allocationstate": "Enabled", "clustertype": "CloudManaged", "cpuovercommitratio": "1.0", "hypervisortype": "Simulator", "id": "0d8929f3-9f8e-491a-839b-c2ceea375557", "managedstate": "Managed", "memoryovercommitratio": "1.0", "name": "foo", "podid": "11de114b-733a-4826-ae73-e9fe7f2656db", "podname": "cs--pod", "zoneid": "720e3192-4453-4c92-8423-204549e1844a", "zonename": "cs--zone" } ], "count": 1 } {code} h2. Expected: {code} $ cs addCluster clustername=foo hypervisor=Simulator podid=11de114b-733a-4826-ae73-e9fe7f2656db zoneid=720e3192-4453-4c92-8423-204549e1844a clustertype=CloudManaged { "cluster": { "allocationstate": "Enabled", "clustertype": "CloudManaged", "cpuovercommitratio": "1.0", "hypervisortype": "Simulator", "id": "0d8929f3-9f8e-491a-839b-c2ceea375557", "managedstate": "Managed", "memoryovercommitratio": "1.0", "name": "foo", "podid": "11de114b-733a-4826-ae73-e9fe7f2656db", "podname": "cs--pod", "zoneid": "720e3192-4453-4c92-8423-204549e1844a", "zonename": "cs--zone" } } {code} e.g. pod example {code} cs createPod name=podfoo zoneid=720e3192-4453-4c92-8423-204549e1844a startip=10.100.100.101 gateway=10.100.100.1 netmask=255.255.255.0 { "pod": { "allocationstate": "Enabled", "endip": "10.100.100.254", "gateway": "10.100.100.1", "id": "15599249-c32c-4f82-84fa-96c6e31d8705", "name": "podfoo", "netmask": "255.255.255.0", "startip": "10.100.100.101", "zoneid": "720e3192-4453-4c92-8423-204549e1844a", "zonename": "cs--zone" } } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)