diff options
author | Jeroen Geusebroek <me@jeroengeusebroek.nl> | 2016-01-03 08:49:20 +0100 |
---|---|---|
committer | Jeroen Geusebroek <me@jeroengeusebroek.nl> | 2016-01-03 08:49:20 +0100 |
commit | 30c5b303ced99c80bdaa5e8bc4771c5762c83a55 (patch) | |
tree | e5ec4b1544198d4345a35b9c8cbc39376651e7d1 /system/gluster_volume.py | |
parent | fa11718c0f6632dc9b1117c6887f43df6dd60186 (diff) | |
download | ansible-modules-extras-30c5b303ced99c80bdaa5e8bc4771c5762c83a55.tar.gz |
Fix for issue #1074. Now able to create volume without replica's.
Diffstat (limited to 'system/gluster_volume.py')
-rw-r--r-- | system/gluster_volume.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/gluster_volume.py b/system/gluster_volume.py index ff1ce983..ea74c25f 100644 --- a/system/gluster_volume.py +++ b/system/gluster_volume.py @@ -353,6 +353,9 @@ def main(): if cluster != None and cluster[-1] == '': cluster = cluster[0:-1] + if cluster == None: + cluster = [myhostname] + if brick_paths != None and "," in brick_paths: brick_paths = brick_paths.split(",") else: |