mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-25 13:12:46 +00:00
[PR #11658/25a4f568 backport][stable-12] puppet: deprecate param timeout (#11665)
puppet: deprecate param timeout (#11658)
* puppet: deprecate param timeout
* add changelog frag
* Update changelogs/fragments/11658-puppet-timeout-deprecation.yml
---------
(cherry picked from commit 25a4f568f9)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
4dfe6816a8
commit
555d7b9038
4 changed files with 47 additions and 6 deletions
|
|
@ -22,6 +22,9 @@ options:
|
|||
timeout:
|
||||
description:
|
||||
- How long to wait for C(puppet) to finish.
|
||||
- This parameter is deprecated and will be removed in community.general 14.0.0.
|
||||
Use the task-level C(timeout) keyword instead.
|
||||
To suppress this deprecation warning, set O(timeout) to V("").
|
||||
type: str
|
||||
default: 30m
|
||||
puppetmaster:
|
||||
|
|
@ -240,6 +243,15 @@ def main():
|
|||
)
|
||||
p = module.params
|
||||
|
||||
if p["timeout"]:
|
||||
module.deprecate(
|
||||
'The "timeout" parameter is deprecated and will be removed in community.general 14.0.0. '
|
||||
'Use the task-level "timeout" keyword instead. '
|
||||
"To suppress this warning, set \"timeout: ''\" in the task.",
|
||||
version="14.0.0",
|
||||
collection_name="community.general",
|
||||
)
|
||||
|
||||
if p["manifest"]:
|
||||
if not os.path.exists(p["manifest"]):
|
||||
module.fail_json(msg=f"Manifest file {dict(manifest=p['manifest'])['manifest']} not found.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue