mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 19:20:22 -07:00
Remove deprecated features and plugins for 11.0.0 (#10126)
Some checks failed
EOL CI / EOL Sanity (Ⓐ2.15) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
Some checks failed
EOL CI / EOL Sanity (Ⓐ2.15) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.10) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.15+py3.5) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.15+fedora37+py:azp/posix/3/) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
* Bump version to 11.0.0. * Removed deprecated plugins/modules. * Remove _init_session(). * Remove ack_venv_creation_deprecation. * Change behavior of state. * Remove value reading. * Remove list_all. * Remove various deprecated module helper things. * Change default of proxmox's update parameter. * Fix constructor command order. Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> * MH: adjust guide --------- Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com> Co-authored-by: Alexei Znamensky <russoz@gmail.com>
This commit is contained in:
parent
b861850e1a
commit
9d7b3f13bd
74 changed files with 89 additions and 10574 deletions
|
@ -228,10 +228,11 @@ options:
|
|||
update:
|
||||
description:
|
||||
- If V(true), the container will be updated with new values.
|
||||
- The current default value of V(false) is deprecated and should will change to V(true) in community.general 11.0.0.
|
||||
Please set O(update) explicitly to V(false) or V(true) to avoid surprises and get rid of the deprecation warning.
|
||||
- If V(false), it will not be updated.
|
||||
- The default changed from V(false) to V(true) in community.general 11.0.0.
|
||||
type: bool
|
||||
version_added: 8.1.0
|
||||
default: true
|
||||
force:
|
||||
description:
|
||||
- Forcing operations.
|
||||
|
@ -700,7 +701,7 @@ def get_proxmox_args():
|
|||
nameserver=dict(),
|
||||
searchdomain=dict(),
|
||||
timeout=dict(type="int", default=30),
|
||||
update=dict(type="bool"),
|
||||
update=dict(type="bool", default=True),
|
||||
force=dict(type="bool", default=False),
|
||||
purge=dict(type="bool", default=False),
|
||||
state=dict(
|
||||
|
@ -844,15 +845,6 @@ class ProxmoxLxcAnsible(ProxmoxAnsible):
|
|||
|
||||
# check if the container exists already
|
||||
if lxc is not None:
|
||||
if update is None:
|
||||
# TODO: Remove deprecation warning in version 11.0.0
|
||||
self.module.deprecate(
|
||||
msg="The default value of false for 'update' has been deprecated and will be changed to true in version 11.0.0.",
|
||||
version="11.0.0",
|
||||
collection_name="community.general",
|
||||
)
|
||||
update = False
|
||||
|
||||
if update:
|
||||
# Update it if we should
|
||||
identifier = self.format_vm_identifier(vmid, hostname)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue