diff options
author | Dmitry Bashkatov <dbashkatov@gmail.com> | 2015-03-11 17:22:38 +0300 |
---|---|---|
committer | Dmitry Bashkatov <dbashkatov@gmail.com> | 2015-03-11 17:22:38 +0300 |
commit | 19d51a51dbfb2a5c2f4279baf635acb70785e902 (patch) | |
tree | 8fc723a888190cdd98e66c74ccbc796e441dcb39 /system/gluster_volume.py | |
parent | 26c2080dcfefda4fbdea6ab8917f734401c19e20 (diff) | |
download | ansible-modules-extras-19d51a51dbfb2a5c2f4279baf635acb70785e902.tar.gz |
gluster_volume: remove redundant code
Diffstat (limited to 'system/gluster_volume.py')
-rw-r--r-- | system/gluster_volume.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/gluster_volume.py b/system/gluster_volume.py index 3f735a12..d51512a1 100644 --- a/system/gluster_volume.py +++ b/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'] |