From 9fe52c92ace1c8c1e6e016aad8bb14973d6c9dc0 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 26 Aug 2010 05:53:41 +0000 Subject: glusterd: handle failure of 'getspec' in case of '-' in volume name Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 1433 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1433 --- extras/volgen/CreateVolfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/volgen/CreateVolfile.py b/extras/volgen/CreateVolfile.py index 22cffcffe29..c8143a03aba 100644 --- a/extras/volgen/CreateVolfile.py +++ b/extras/volgen/CreateVolfile.py @@ -348,7 +348,7 @@ class CreateVolfile: i = 0 for export in self.host_dict[self.host]: export_volfile = "%s/%s-%d.vol" % (self.conf_dir, - str(self.host + '-' + self.volume_name), + str(self.volume_name + '.' + self.host), i) i += 1 exp_fd = file ("%s" % (export_volfile),"w") -- cgit