Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-DbaPrivilege - Don't write a warning if privilege is already set #7516

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

andreasjordan
Copy link
Contributor

Type of Change

  • Bug fix (non-breaking change, fixes # )
  • New feature (non-breaking change, adds functionality, fixes Enable "-WarningAction SilentlyContinue" for commands that work remote like Set-DbaPrivilege #7232 )
  • Breaking change (effects multiple commands or functionality, fixes # )
  • Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
  • Unit test is included
  • Documentation
  • Build system

Purpose

When installing a second instance on a system under the same service account, and thereby setting the instant file initialization privilege again, I don't what to see a warning message, that the privilege was already set.
But on the over hand I think it's worth to have a verbose message in the else path of these ifs for debugging.

@potatoqualitee
Copy link
Member

Reasonable. We waffled about this in the pat and i think this is a better approach

@potatoqualitee potatoqualitee merged commit 35fa1b5 into development Jul 8, 2021
@potatoqualitee potatoqualitee deleted the 7232_SetDbaPrivilege_no_Warning branch July 8, 2021 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable "-WarningAction SilentlyContinue" for commands that work remote like Set-DbaPrivilege
2 participants