From 6fc533d6633db802c94df545dd32bebb14621877 Mon Sep 17 00:00:00 2001 From: Jeroen Geusebroek Date: Sun, 3 Jan 2016 08:49:20 +0100 Subject: [PATCH] Fix for issue #1074. Now able to create volume without replica's. --- lib/ansible/modules/extras/system/gluster_volume.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/extras/system/gluster_volume.py b/lib/ansible/modules/extras/system/gluster_volume.py index ff1ce9831d..ea74c25f16 100644 --- a/lib/ansible/modules/extras/system/gluster_volume.py +++ b/lib/ansible/modules/extras/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: