Skip to content

Conversation

@bradrich-msft
Copy link
Contributor

Description

Bug fix. New-AzSqlDatabaseSecondary was checking existence of source database instead of target database.

Checklist

  • [x ] I have read the Submitting Changes section of CONTRIBUTING.md
  • [x ] The title of the PR is clear and informative
  • [ x] The appropriate ChangeLog.md file(s) has been updated:
    • For any service, the ChangeLog.md file can be found at src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
    • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header -- no new version header should be added
  • [x ] The PR does not introduce breaking changes
  • [x ] If applicable, the changes made in the PR have proper test coverage
  • [x ] For public API changes to cmdlets:
    • [x ] a cmdlet design review was approved for the changes in this repository (Microsoft internal only)
    • [x ] the markdown help files have been regenerated using the commands listed here

jaredmoo
jaredmoo previously approved these changes Jan 15, 2020
try
{
ModelAdapter.GetDatabase(this.PartnerResourceGroupName, this.PartnerServerName, this.DatabaseName);
ModelAdapter.GetDatabase(this.PartnerResourceGroupName, this.PartnerServerName, string.IsNullOrEmpty(this.PartnerDatabaseName) ? this.DatabaseName : this.PartnerDatabaseName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider extracting method to get effective partner database name.

@isra-fel isra-fel self-assigned this Jan 16, 2020
Copy link
Member

@isra-fel isra-fel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @bradrich-msft the change looks good to me. Please add an entry to ChangeLog.md (as the PR template said) then I can get it merged. Thanks

@isra-fel
Copy link
Member

/azp run
azure-powershell - powershell-core

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@bradrich-msft bradrich-msft changed the base branch from master to release-2020-02-04 January 28, 2020 15:14
@bradrich-msft bradrich-msft changed the base branch from release-2020-02-04 to master January 28, 2020 15:14
@bradrich-msft bradrich-msft changed the base branch from master to release-2020-02-04 January 28, 2020 15:41
@bradrich-msft bradrich-msft changed the base branch from release-2020-02-04 to master January 28, 2020 15:42
@markcowl
Copy link
Member

closing in favor of #10983

@markcowl markcowl closed this Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants