1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[6.0.0] xfconf - deprecate parameter disable_facts (#4520)

* xfconf: deprecate parameter disable_facts

* added changelog fragment

* changed deprecation to 8.0.0

* Update changelogs/fragments/4520-xfconf-deprecate-disable-facts.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* added parameter deprecation

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Alexei Znamensky 2022-05-18 05:26:06 +12:00 committed by GitHub
parent ea456985f6
commit 1a2fa802c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -0,0 +1,2 @@
deprecated_features:
- xfconf - deprecated parameter ``disable_facts``, as since version 4.0.0 it only allows value ``true`` (https://github.com/ansible-collections/community.general/pull/4520).

View file

@ -77,7 +77,7 @@ options:
disable_facts: disable_facts:
description: description:
- The value C(false) is no longer allowed since community.general 4.0.0. - The value C(false) is no longer allowed since community.general 4.0.0.
- This option will be deprecated in a future version, and eventually be removed. - This option is deprecated, and will be removed in community.general 8.0.0.
type: bool type: bool
default: true default: true
version_added: 2.1.0 version_added: 2.1.0
@ -183,7 +183,11 @@ class XFConfProperty(CmdStateModuleHelper):
choices=('string', 'int', 'double', 'bool', 'uint', 'uchar', 'char', 'uint64', 'int64', 'float')), choices=('string', 'int', 'double', 'bool', 'uint', 'uchar', 'char', 'uint64', 'int64', 'float')),
value=dict(type='list', elements='raw'), value=dict(type='list', elements='raw'),
force_array=dict(type='bool', default=False, aliases=['array']), force_array=dict(type='bool', default=False, aliases=['array']),
disable_facts=dict(type='bool', default=True), disable_facts=dict(
type='bool', default=True,
removed_in_version='8.0.0',
removed_from_collection='community.general'
),
), ),
required_if=[('state', 'present', ['value', 'value_type'])], required_if=[('state', 'present', ['value', 'value_type'])],
required_together=[('value', 'value_type')], required_together=[('value', 'value_type')],