Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Nov 24, 2018
1 parent fc826eb commit 65b287d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dbatools.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -891,10 +891,6 @@ $script:renames = @(
"AliasName" = "Export-DbaRegisteredServer"
"Definition" = "Export-DbaCmsRegServer"
},
@{
"AliasName" = "Get-DbaRegisteredServer"
"Definition" = "Get-DbaCmsRegServer"
},
@{
"AliasName" = "Get-DbaRegisteredServerGroup"
"Definition" = "Get-DbaCmsRegServerGroup"
Expand Down Expand Up @@ -999,6 +995,10 @@ $script:renames | ForEach-Object {
@{
"AliasName" = "Detach-DbaDatabase"
"Definition" = "Dismount-DbaDatabase"
},
@{
"AliasName" = "Get-DbaRegisteredServer"
"Definition" = "Get-DbaCmsRegServer"
}
) | ForEach-Object {
if (-not (Test-Path Alias:$($_.AliasName))) { Set-Alias -Scope Global -Name $($_.AliasName) -Value $($_.Definition) }
Expand Down
1 change: 0 additions & 1 deletion functions/Get-DbaCmsRegServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,5 @@ function Get-DbaCmsRegServer {
Test-DbaDeprecation -DeprecatedOn "1.0.0" -Parameter ExcludeCmsServer
Test-DbaDeprecation -DeprecatedOn "1.0.0" -Alias Get-DbaRegisteredServerName
Test-DbaDeprecation -DeprecatedOn "1.0.0" -Alias Get-SqlRegisteredServerName
Test-DbaDeprecation -DeprecatedOn "1.0.0" -Alias Get-DbaRegisteredServer
}
}

0 comments on commit 65b287d

Please sign in to comment.