cluster: RHEL6 - config: Fix ccs_tool create -n
Fabio M. Di Nitto
fabbione at fedoraproject.org
Tue May 25 12:42:49 UTC 2010
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=b4317363d5db48458a015ac4d4de63a5048a9509
Commit: b4317363d5db48458a015ac4d4de63a5048a9509
Parent: 4039bf4817a96b6aab20de948389f43b89ce4a8e
Author: Christine Caulfield <ccaulfie at redhat.com>
AuthorDate: Fri May 21 09:09:26 2010 +0100
Committer: Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Tue May 25 14:41:48 2010 +0200
config: Fix ccs_tool create -n
Make 'ccs_tool create -n <x>' create a skeleton with <x> nodes rather
than <x-1>.
Resolves: rhbz#594626
Signed-off-by: Christine Caulfield <ccaulfie at redhat.com>
---
config/tools/ccs_tool/editconf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/config/tools/ccs_tool/editconf.c b/config/tools/ccs_tool/editconf.c
index 323c561..a0371b4 100644
--- a/config/tools/ccs_tool/editconf.c
+++ b/config/tools/ccs_tool/editconf.c
@@ -1031,7 +1031,7 @@ void create_skeleton(int argc, char **argv)
}
fprintf(outfile, " <clusternodes>\n");
- for (i=1; i< numnodes; i++) {
+ for (i=1; i <= numnodes; i++) {
fprintf(outfile, " <clusternode name=\"NEEDNAME-%02d\" votes=\"1\" nodeid=\"%d\">\n", i, i);
fprintf(outfile, " <fence>\n");
fprintf(outfile, " <method name=\"single\">\n");
More information about the cluster-commits
mailing list