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.
pull/20136/head
Tareq Alayan 8 years ago
parent 11b2662f60
commit ebf3c41275

@ -155,6 +155,15 @@ EXAMPLES = '''
lun_id: 1IET_000d0002 lun_id: 1IET_000d0002
address: 10.34.63.204 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: # Import export NFS storage domain:
- ovirt_storage_domains: - ovirt_storage_domains:
domain_function: export domain_function: export
@ -247,7 +256,7 @@ class StorageDomainModule(BaseModule):
), ),
] if storage_type in ['iscsi', 'fcp'] else None, ] if storage_type in ['iscsi', 'fcp'] else None,
mount_options=storage.get('mount_options'), 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'), address=storage.get('address'),
path=storage.get('path'), path=storage.get('path'),
nfs_retrans=storage.get('retrans'), nfs_retrans=storage.get('retrans'),

Loading…
Cancel
Save