Skip to content

Commit c64ada1

Browse files
committed
WIP
1 parent bb7e93a commit c64ada1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/install_puppet.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ try {
348348
}
349349
"$_" | Out-File -FilePath (Join-Path -Path $state_dir -ChildPath 'puppet_agent_upgrade_failure.log')
350350
# Put relevant errors in puppet_agent_upgrade_failure.log
351-
Get-Content -Path $logfile | Select-String -Pattern "^Error.*$|-- Error" | Add-Content -Path (Join-Path -Path $state_dir -ChildPath 'puppet_agent_upgrade_failure.log')
352-
Get-Content -Path $Logfile -Tail 10 | Add-Content -Path (Join-Path -Path $state_dir -ChildPath 'puppet_agent_upgrade_failure.log')
351+
Get-Content -Path $logfile | Select-String -Pattern "^Error.*$|-- Error" | Select-String -Pattern "^.*PUPPET_AGENT_ACCOUNT_PASSWORD.*$" -NotMatch | Add-Content -Path (Join-Path -Path $state_dir -ChildPath 'puppet_agent_upgrade_failure.log')
352+
Get-Content -Path $Logfile -Tail 10 | Select-String -Pattern "^.*PUPPET_AGENT_ACCOUNT_PASSWORD.*$" -NotMatch | Add-Content -Path (Join-Path -Path $state_dir -ChildPath 'puppet_agent_upgrade_failure.log')
353353
} finally {
354354
Reset-PuppetServices $services_before
355355
Unlock-Installation $install_pid_lock

0 commit comments

Comments
 (0)