mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove RequireLicenseAcceptance default value (#11512)
This commit is contained in:
committed by
Travis Plunk
parent
6b96f9aefc
commit
b25e67e607
@@ -477,7 +477,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// Gets or sets whether or not the module requires explicit user acceptance for install/update/save.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public SwitchParameter RequireLicenseAcceptance { get; set; } = true;
|
||||
public SwitchParameter RequireLicenseAcceptance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the external module dependencies.
|
||||
|
||||
@@ -24,6 +24,7 @@ Describe "New-ModuleManifest basic tests" -tags "CI" {
|
||||
$module.Name | Should -BeExactly "test"
|
||||
$module.ModuleType | Should -BeExactly "Manifest"
|
||||
$module.Version | Should -BeExactly "0.0.1"
|
||||
$module.PrivateData.PSData.RequireLicenseAcceptance | Should -BeNullOrEmpty
|
||||
}
|
||||
|
||||
It "Verify manifest fields 2" {
|
||||
|
||||
Reference in New Issue
Block a user