From 00c6f0b8887c75395aebbd3439e274a00eeaf87f Mon Sep 17 00:00:00 2001 From: Dmitry Bashkatov Date: Wed, 11 Mar 2015 17:22:38 +0300 Subject: [PATCH] gluster_volume: remove redundant code --- lib/ansible/modules/extras/system/gluster_volume.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/system/gluster_volume.py b/lib/ansible/modules/extras/system/gluster_volume.py index 3f735a12e1..d51512a143 100644 --- a/lib/ansible/modules/extras/system/gluster_volume.py +++ b/lib/ansible/modules/extras/system/gluster_volume.py @@ -292,7 +292,7 @@ def main(): brick=dict(required=False, default=None), start_on_create=dict(required=False, default=True, type='bool'), rebalance=dict(required=False, default=False, type='bool'), - options=dict(required=False, default=None, type='dict'), + options=dict(required=False, default={}, type='dict'), quota=dict(required=False), directory=dict(required=False, default=None), force=dict(required=False, default=False, type='bool'), @@ -318,7 +318,7 @@ def main(): if not myhostname: myhostname = socket.gethostname() - options = module.params['options'] or {} + options = module.params['options'] quota = module.params['quota'] directory = module.params['directory']