File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments