Skip to content

Commit

Permalink
fix: refer to portnumber property correctly (#209)
Browse files Browse the repository at this point in the history
* fix: refer to portnumber property correctly

* chore: add changelogs
  • Loading branch information
lowlydba authored Oct 7, 2023
1 parent 787f403 commit f78faaf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/209-fix-port-ref.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- Get port properly from AG Listener when comparing to input port value.
1 change: 1 addition & 0 deletions changelogs/fragments/release-summary-2-2-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
release_summary: Minor bugfix for setting the port on an AG listener.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace: lowlydba
name: sqlserver
version: 2.2.1
version: 2.2.2
readme: README.md
authors:
- John McCall (github.com/lowlydba)
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/ag_listener.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ try {
$output = Add-DbaAgListener @listenerParams
$module.Result.changed = $true
}
elseif ($existingListener.Port -ne $port) {
elseif ($existingListener.PortNumber -ne $port) {
$output = Set-DbaAgListener -AvailabilityGroup $agName -Listener $listenerName -Port $port
$module.Result.changed = $true
}
Expand Down

0 comments on commit f78faaf

Please sign in to comment.