mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
test: optimize win_psmodule tests (#53431)
This commit is contained in:
@@ -291,6 +291,7 @@ Function Install-Repository {
|
||||
[string]$Url,
|
||||
[bool]$CheckMode
|
||||
)
|
||||
Add-DeprecationWarning -obj $result -message "Adding a repo with this module is deprecated, the repository parameter should only be used to select a repo. Use win_psrepository to manage repos" -version 2.12
|
||||
# Install NuGet provider if needed.
|
||||
Install-NugetProvider -CheckMode $CheckMode
|
||||
|
||||
@@ -318,6 +319,7 @@ Function Remove-Repository{
|
||||
[string]$Name,
|
||||
[bool]$CheckMode
|
||||
)
|
||||
Add-DeprecationWarning -obj $result -message "Removing a repo with this module is deprecated, use win_psrepository to manage repos" -version 2.12
|
||||
|
||||
$Repo = (Get-PSRepository).Name
|
||||
|
||||
|
||||
@@ -70,11 +70,13 @@ options:
|
||||
version_added: "2.8"
|
||||
repository:
|
||||
description:
|
||||
- Name of the custom repository to register or use.
|
||||
- Name of the custom repository to use.
|
||||
type: str
|
||||
url:
|
||||
description:
|
||||
- URL of the custom repository to register.
|
||||
- This option is deprecated and will be removed in Ansible 2.12. Use the
|
||||
M(win_psrepository) module instead.
|
||||
type: str
|
||||
notes:
|
||||
- PowerShell modules needed
|
||||
|
||||
Reference in New Issue
Block a user