Skip to content

Commit

Permalink
fixes #5199 (#5282)
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Mar 22, 2019
1 parent 754dd53 commit 38c493a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion functions/Get-DbaSpConfigure.ps1
Expand Up @@ -222,7 +222,8 @@ function Get-DbaSpConfigure {
IsRunningDefaultValue = $isDefault
Parent = $server
ConfigName = ($smoName).$DisplayName
} | Select-DefaultView -ExcludeProperty ServerName, Parent, ConfigName
Property = $prop
} | Select-DefaultView -ExcludeProperty ServerName, Parent, ConfigName, Property
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions functions/Set-DbaSpConfigure.ps1
Expand Up @@ -78,8 +78,7 @@ function Set-DbaSpConfigure {
[string[]]$Name,
[parameter(ValueFromPipeline)]
[object[]]$InputObject,
[switch][Alias('Silent')]
$EnableException
[switch]$EnableException
)
process {
foreach ($instance in $SqlInstance) {
Expand Down Expand Up @@ -107,7 +106,7 @@ function Set-DbaSpConfigure {

If ($Pscmdlet.ShouldProcess($SqlInstance, "Adjusting server configuration $configuration from $currentConfigValue to $value.")) {
try {
$server.Configuration.$configuration.ConfigValue = $value
$configobject.Property.ConfigValue = $value
$server.Configuration.Alter()

[pscustomobject]@{
Expand Down

0 comments on commit 38c493a

Please sign in to comment.