mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-12 09:01:58 -06:00
add resource_drift logtype
This commit is contained in:
parent
d47d475a03
commit
50c3f53595
@ -29,20 +29,21 @@ type JSONLog struct {
|
||||
}
|
||||
|
||||
const (
|
||||
LogVersion JSONLogType = "version"
|
||||
LogApplyComplete JSONLogType = "apply_complete"
|
||||
LogApplyErrored JSONLogType = "apply_errored"
|
||||
LogApplyStart JSONLogType = "apply_start"
|
||||
LogChangeSummary JSONLogType = "change_summary"
|
||||
LogDiagnostic JSONLogType = "diagnostic"
|
||||
LogPlannedChange JSONLogType = "planned_change"
|
||||
LogRefreshStart JSONLogType = "refresh_start"
|
||||
LogRefreshComplete JSONLogType = "refresh_complete"
|
||||
LogApplyStart JSONLogType = "apply_start"
|
||||
LogApplyErrored JSONLogType = "apply_errored"
|
||||
LogApplyComplete JSONLogType = "apply_complete"
|
||||
LogChangeSummary JSONLogType = "change_summary"
|
||||
LogProvisionStart JSONLogType = "provision_start"
|
||||
LogProvisionProgress JSONLogType = "provision_progress"
|
||||
LogProvisionComplete JSONLogType = "provision_complete"
|
||||
LogProvisionErrored JSONLogType = "provision_errored"
|
||||
LogProvisionProgress JSONLogType = "provision_progress"
|
||||
LogProvisionStart JSONLogType = "provision_start"
|
||||
LogOutputs JSONLogType = "outputs"
|
||||
LogRefreshComplete JSONLogType = "refresh_complete"
|
||||
LogRefreshStart JSONLogType = "refresh_start"
|
||||
LogResourceDrift JSONLogType = "resource_drift"
|
||||
LogVersion JSONLogType = "version"
|
||||
)
|
||||
|
||||
type Renderer struct {
|
||||
@ -101,7 +102,7 @@ func (r Renderer) RenderLog(log *JSONLog) error {
|
||||
// We won't display these types of logs
|
||||
return nil
|
||||
|
||||
case LogApplyStart, LogApplyComplete, LogRefreshStart, LogProvisionStart:
|
||||
case LogApplyStart, LogApplyComplete, LogRefreshStart, LogProvisionStart, LogResourceDrift:
|
||||
msg := fmt.Sprintf(r.Colorize.Color("[bold]%s[reset]"), log.Message)
|
||||
r.Streams.Println(msg)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user