Skip to content
Permalink
Browse files

so htat it loads the function

  • Loading branch information...
SQLDBAWithABeard committed Feb 18, 2019
1 parent 8fcc34e commit f623b3a0ad0be429bf1ff8ad98dc8f2f7cc268ed
Showing with 7 additions and 6 deletions.
  1. +7 −6 functions/Update-DbcPowerBiDataSource.ps1
@@ -161,14 +161,15 @@ function Update-DbcPowerBiDataSource {
if ($InputObject.TotalCount -gt 0) {
try {
if ($PSCmdlet.ShouldProcess($FilePath, 'Passing results')) {
if($Append){
$InputObject.TestResult | ConvertTo-Json -Depth 3 | Out-File -FilePath $FilePath -Append
Write-PSFMessage -Level Output -Message "Appended results to $FilePath"
if ($Append) {
$InputObject.TestResult | ConvertTo-Json -Depth 3 | Out-File -FilePath $FilePath -Append
Write-PSFMessage -Level Output -Message "Appended results to $FilePath"
}
else{
$InputObject.TestResult | ConvertTo-Json -Depth 3 | Out-File -FilePath $FilePath
Write-PSFMessage -Level Output -Message "Wrote results to $FilePath"
else {
$InputObject.TestResult | ConvertTo-Json -Depth 3 | Out-File -FilePath $FilePath
Write-PSFMessage -Level Output -Message "Wrote results to $FilePath"
}
}
}
catch {
Stop-PSFFunction -Message "Failure" -ErrorRecord $_

0 comments on commit f623b3a

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.