Fix for issue #1074. Now able to create volume without replica's.

pull/18777/head
Jeroen Geusebroek 9 years ago committed by Matt Clay
parent d504253257
commit 6fc533d663

@ -353,6 +353,9 @@ def main():
if cluster != None and cluster[-1] == '': if cluster != None and cluster[-1] == '':
cluster = cluster[0:-1] cluster = cluster[0:-1]
if cluster == None:
cluster = [myhostname]
if brick_paths != None and "," in brick_paths: if brick_paths != None and "," in brick_paths:
brick_paths = brick_paths.split(",") brick_paths = brick_paths.split(",")
else: else:

Loading…
Cancel
Save