Browse code

VMware: Use multiline for cluster_name opt

cluster_name opt for vSphere driver is MultiStrOpt and currently
users are not able to set multiple values from localrc. This is
fixed by using iniset_multiline function.

Thus, new usage would be :
VMWAREAPI_CLUSTER='cluster1 cluster2 cluster3'
where c1, c2, c3 are the name of the clusters

Change-Id: Ie0f3a48614e6134d849050754932a3613363ce66

Sabari Kumar Murugesan authored on 2014/03/25 06:26:08
Showing 1 changed files
... ...
@@ -39,7 +39,7 @@ function configure_nova_hypervisor {
39 39
     iniset $NOVA_CONF vmware host_ip "$VMWAREAPI_IP"
40 40
     iniset $NOVA_CONF vmware host_username "$VMWAREAPI_USER"
41 41
     iniset $NOVA_CONF vmware host_password "$VMWAREAPI_PASSWORD"
42
-    iniset $NOVA_CONF vmware cluster_name "$VMWAREAPI_CLUSTER"
42
+    iniset_multiline $NOVA_CONF vmware cluster_name "$VMWAREAPI_CLUSTER"
43 43
     if is_service_enabled neutron; then
44 44
         iniset $NOVA_CONF vmware integration_bridge $OVS_BRIDGE
45 45
     fi