Skip to content

Commit 0bc6026

Browse files
committed
fix description of addcluster api, and a typo in one script
1 parent ae8e7cd commit 0bc6026

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

api/src/com/cloud/api/commands/AddClusterCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ public class AddClusterCmd extends BaseCmd {
5858
@Parameter(name=ApiConstants.ZONE_ID, type=CommandType.LONG, required=true, description="the Zone ID for the cluster")
5959
private Long zoneId;
6060

61-
@Parameter(name=ApiConstants.HYPERVISOR, type=CommandType.STRING, required=true, description="hypervisor type of the cluster")
61+
@Parameter(name=ApiConstants.HYPERVISOR, type=CommandType.STRING, required=true, description="hypervisor type of the cluster: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator")
6262
private String hypervisor;
6363

64-
@Parameter(name=ApiConstants.CLUSTER_TYPE, type=CommandType.STRING, required=true, description="hypervisor type of the cluster")
64+
@Parameter(name=ApiConstants.CLUSTER_TYPE, type=CommandType.STRING, required=true, description="type of the cluster: CloudManaged, ExternalManaged")
6565
private String clusterType;
6666

6767
@Parameter(name=ApiConstants.ALLOCATION_STATE, type=CommandType.STRING, description="Allocation state of this cluster for allocation of new resources")

scripts/vm/hypervisor/kvm/rundomrpre.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# $Id: rundomrpre.sh 10427 2010-07-09 03:30:48Z edison $ $HeadURL: svn://svn.lab.vmops.com/repos/vmdev/java/scripts/vm/hypervisor/kvm/rundomrpre.sh $
2424

2525
set -x
26-
cert="/root/.ssh/id_rsa.cloud"
26+
pubKey="/root/.ssh/id_rsa.pub.cloud"
2727
mntpath() {
2828
local vmname=$1
2929
if [ ! -d /mnt/$vmname ]
@@ -87,9 +87,9 @@ patch_all() {
8787
local datadisk=$3
8888
local path=$(mntpath $vmname)
8989

90-
if [ -f $cert ]
90+
if [ -f $pubKey ]
9191
then
92-
cp $cert $path/authorized_keys
92+
cp $pubKey $path/authorized_keys
9393
fi
9494
echo $cmdline > $path/cmdline
9595
sed -i "s/,/\ /g" $path/cmdline

0 commit comments

Comments
 (0)