Merge pull request #1447 from jgeusebroek/devel
Now able to create volume without replica's.
This commit is contained in:
commit
5bedee2187
1 changed files with 4 additions and 1 deletions
|
@ -350,9 +350,12 @@ def main():
|
||||||
|
|
||||||
# Clean up if last element is empty. Consider that yml can look like this:
|
# Clean up if last element is empty. Consider that yml can look like this:
|
||||||
# cluster="{% for host in groups['glusterfs'] %}{{ hostvars[host]['private_ip'] }},{% endfor %}"
|
# cluster="{% for host in groups['glusterfs'] %}{{ hostvars[host]['private_ip'] }},{% endfor %}"
|
||||||
if cluster != None and cluster[-1] == '':
|
if cluster != None and len(cluster) > 1 and cluster[-1] == '':
|
||||||
cluster = cluster[0:-1]
|
cluster = cluster[0:-1]
|
||||||
|
|
||||||
|
if cluster == None or cluster[0] == '':
|
||||||
|
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…
Reference in a new issue