From ebf3c412759c1c05a95c32e4caea9ffecb344ce2 Mon Sep 17 00:00:00 2001 From: Tareq Alayan Date: Wed, 11 Jan 2017 16:59:00 +0200 Subject: [PATCH] cloud: ovirt: 'glusterfs' as default for vfs_type When storage type is glusterfs, the vfs_type will be glusterfs as well, there is no need to specify it since there is no other valid value. --- .../modules/cloud/ovirt/ovirt_storage_domains.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py b/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py index d0f90310d19..751b3311ca7 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py @@ -155,6 +155,15 @@ EXAMPLES = ''' lun_id: 1IET_000d0002 address: 10.34.63.204 +# Add data glusterfs storage domain +- ovirt_storage_domains: + name: glusterfs_1 + host: myhost + data_center: mydatacenter + glusterfs: + address: 10.10.10.10 + path: /path/data + # Import export NFS storage domain: - ovirt_storage_domains: domain_function: export @@ -247,7 +256,7 @@ class StorageDomainModule(BaseModule): ), ] if storage_type in ['iscsi', 'fcp'] else None, mount_options=storage.get('mount_options'), - vfs_type=storage.get('vfs_type'), + vfs_type='glusterfs' if storage_type in ['glusterfs'] else storage.get('vfs_type'), address=storage.get('address'), path=storage.get('path'), nfs_retrans=storage.get('retrans'),