refactor: use globaloutput for hint message

main
sundowndev 2021-05-24 14:59:18 +02:00
parent 1ed957ee64
commit aa101e1731
1 changed files with 2 additions and 4 deletions

View File

@ -203,11 +203,9 @@ func scanRun(opts *pkg.ScanOptions) error {
telemetry.SendTelemetry(analysis)
}
if analysis.Summary().TotalResources-analysis.Summary().TotalManaged > 0 {
fmt.Println("\nHint: use gen-driftignore command to generate a .driftignore file based on your drifts")
}
if !analysis.IsSync() {
globaloutput.Printf("\nHint: use gen-driftignore command to generate a .driftignore file based on your drifts\n")
return cmderrors.InfrastructureNotInSync{}
}