refactor: use globaloutput for hint message
parent
1ed957ee64
commit
aa101e1731
|
@ -203,11 +203,9 @@ func scanRun(opts *pkg.ScanOptions) error {
|
||||||
telemetry.SendTelemetry(analysis)
|
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() {
|
if !analysis.IsSync() {
|
||||||
|
globaloutput.Printf("\nHint: use gen-driftignore command to generate a .driftignore file based on your drifts\n")
|
||||||
|
|
||||||
return cmderrors.InfrastructureNotInSync{}
|
return cmderrors.InfrastructureNotInSync{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue