mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-02 20:24:23 -07:00
cpanm: deprecate mode=compatibility
This commit is contained in:
parent
77cd018427
commit
baac82435d
1 changed files with 1 additions and 0 deletions
|
@ -211,6 +211,7 @@ class CPANMinus(ModuleHelper):
|
|||
if v.mode == "compatibility":
|
||||
if v.name_check:
|
||||
self.do_raise("Parameter name_check can only be used with mode=new")
|
||||
self.deprecate("'mode=compatibility' is deprecated, use 'mode=new' instead", version='12.0.0', collection_name="community.general")
|
||||
else:
|
||||
if v.name and v.from_path:
|
||||
self.do_raise("Parameters 'name' and 'from_path' are mutually exclusive when 'mode=new'")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue