File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 114114 }
115115
116116 # Test the module database setup
117- try {
118- Test-PSDCConfiguration - SqlCredential $pdcCredential - EnableException
119- }
120- catch {
121- Stop-PSFFunction - Message " Something is wrong in the module configuration" - ErrorRecord $_ - Continue
117+ if ($PSCmdlet.ShouldProcess (" Test-PSDCConfiguration" , " Testing module setup" )) {
118+ try {
119+ Test-PSDCConfiguration - SqlCredential $pdcCredential - EnableException
120+ }
121+ catch {
122+ Stop-PSFFunction - Message " Something is wrong in the module configuration" - ErrorRecord $_ - Continue
123+ }
122124 }
123125
124126 Write-PSFMessage - Message " Started removing database clones" - Level Verbose
244246 }
245247 }
246248
247- if ($PSCmdlet.ShouldProcess ($ item.CloneID , " Deleting clone rom database" )) {
249+ if ($PSCmdlet.ShouldProcess (" Clone ID: $ ( $ item.CloneID ) " , " Deleting clone from database" )) {
248250 # Removing records from database
249251 try {
250252 $query = " DELETE FROM dbo.Clone WHERE CloneID = $ ( $item.CloneID ) ;"
You can’t perform that action at this time.
0 commit comments