summaryrefslogtreecommitdiff
path: root/system/gluster_volume.py
diff options
context:
space:
mode:
authorJeroen Geusebroek <me@jeroengeusebroek.nl>2016-01-03 08:49:20 +0100
committerJeroen Geusebroek <me@jeroengeusebroek.nl>2016-01-03 08:49:20 +0100
commit30c5b303ced99c80bdaa5e8bc4771c5762c83a55 (patch)
treee5ec4b1544198d4345a35b9c8cbc39376651e7d1 /system/gluster_volume.py
parentfa11718c0f6632dc9b1117c6887f43df6dd60186 (diff)
downloadansible-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.py3
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: