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
This commit is contained in:
Sabari Kumar Murugesan 2014-03-24 14:26:08 -07:00
parent 0982f0795e
commit 1a3c3734b2

View File

@ -39,7 +39,7 @@ function configure_nova_hypervisor {
iniset $NOVA_CONF vmware host_ip "$VMWAREAPI_IP"
iniset $NOVA_CONF vmware host_username "$VMWAREAPI_USER"
iniset $NOVA_CONF vmware host_password "$VMWAREAPI_PASSWORD"
iniset $NOVA_CONF vmware cluster_name "$VMWAREAPI_CLUSTER"
iniset_multiline $NOVA_CONF vmware cluster_name "$VMWAREAPI_CLUSTER"
if is_service_enabled neutron; then
iniset $NOVA_CONF vmware integration_bridge $OVS_BRIDGE
fi