Skip to content

Commit

Permalink
Tirdy up HRs (lines used to separate log output)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-richardson committed Apr 12, 2020
1 parent e29908c commit 4bba506
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Tests/surface-logs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,38 @@ Write-Host "##teamcity[blockClosed name='LCM Configuration']"
$ProgressPreference = "SilentlyContinue"

Write-Host "##teamcity[blockOpened name='Get-DSCConfigurationStatus']"
try {
try {
$status = Get-DSCConfigurationStatus
write-output "Get-DSCConfigurationStatus succeeded"
write-output "-----------------------"
write-output "--------------------------------------------------"
write-output "DSCConfigurationStatus:"
write-output "-----------------------"
write-output "--------------------------------------------------"
$status | format-list | write-output
write-output "------------------------"
write-output "--------------------------------------------------"
write-output "ResourcesInDesiredState:"
write-output "------------------------"
write-output "--------------------------------------------------"
if ($status.ResourcesInDesiredState.length -eq 0) {
write-output "No resources in desired state"
write-output "---------------------------"
write-output "--------------------------------------------------"
} else {
$status.ResourcesInDesiredState | foreach-object {
$_ | write-output
write-output "------------------------"
write-output "--------------------------------------------------"
}
}
write-output "---------------------------"
write-output "--------------------------------------------------"
write-output "ResourcesNotInDesiredState:"
write-output "---------------------------"
write-output "--------------------------------------------------"
if ($status.ResourcesNotInDesiredState.length -eq 0) {
write-output "No resources not in desired state"
write-output "---------------------------"
write-output "--------------------------------------------------"
} else {
$status.ResourcesNotInDesiredState | foreach-object {
write-output "---------------------------"
$_ | write-warning
write-output "--------------------------------------------------"
}
}
} catch {
} catch {
write-output "Get-DSCConfigurationStatus failed"
write-output $_
}
Expand Down

0 comments on commit 4bba506

Please sign in to comment.