mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-04 15:40:20 -07:00
Adds 'discard_after_delete' property to ovirt_storage_domains module. (#33450)
This commit is contained in:
parent
f13656782a
commit
b06dfc4891
1 changed files with 9 additions and 0 deletions
|
@ -122,6 +122,12 @@ options:
|
||||||
description:
|
description:
|
||||||
- "If I(True) storage domain will be formatted after removing it from oVirt/RHV."
|
- "If I(True) storage domain will be formatted after removing it from oVirt/RHV."
|
||||||
- "This parameter is relevant only when C(state) is I(absent)."
|
- "This parameter is relevant only when C(state) is I(absent)."
|
||||||
|
discard_after_delete:
|
||||||
|
description:
|
||||||
|
- "If I(True) storage domain blocks will be discarded upon deletion. Enabled by default."
|
||||||
|
- "This parameter is relevant only for block based storage domains."
|
||||||
|
version_added: 2.5
|
||||||
|
|
||||||
extends_documentation_fragment: ovirt
|
extends_documentation_fragment: ovirt
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -300,6 +306,8 @@ class StorageDomainModule(BaseModule):
|
||||||
host=otypes.Host(
|
host=otypes.Host(
|
||||||
name=self._module.params['host'],
|
name=self._module.params['host'],
|
||||||
),
|
),
|
||||||
|
discard_after_delete=self._module.params['discard_after_delete']
|
||||||
|
if storage_type in ['iscsi', 'fcp'] else False,
|
||||||
storage=otypes.HostStorage(
|
storage=otypes.HostStorage(
|
||||||
type=otypes.StorageType(storage_type),
|
type=otypes.StorageType(storage_type),
|
||||||
logical_units=[
|
logical_units=[
|
||||||
|
@ -498,6 +506,7 @@ def main():
|
||||||
fcp=dict(default=None, type='dict'),
|
fcp=dict(default=None, type='dict'),
|
||||||
destroy=dict(type='bool', default=False),
|
destroy=dict(type='bool', default=False),
|
||||||
format=dict(type='bool', default=False),
|
format=dict(type='bool', default=False),
|
||||||
|
discard_after_delete=dict(type='bool', default=True)
|
||||||
)
|
)
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=argument_spec,
|
argument_spec=argument_spec,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue