mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Return error for pending corrections in preview (#438)
Return a non-zero error code if there are corrections for preview step. This is especially useful for automated alerting and scripting around changes to the zone not reflected in the configuration.
This commit is contained in:
committed by
Tom Limoncelli
parent
061ea63322
commit
b0715e96e4
@ -165,6 +165,9 @@ DomainLoop:
|
||||
if anyErrors {
|
||||
return errors.Errorf("Completed with errors")
|
||||
}
|
||||
if totalCorrections != 0 {
|
||||
return errors.Errorf("Corrections pending")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user