mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user