adamwill / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

1697873 Issue 50689 - Failed db restore task does not report an error

Authored and Committed by mreynolds 4 years ago
    Issue 50689 - Failed db restore task does not report an error
    
    Bug Description: If you have a back up that contains a backend that
                     is not configured the restore fails, but a success
                     return code is returned to the client.  This happens
                     becuase the return code gets overwritten after the
                     failure.
    
    Fix Description: Preserve the error code upon failure and properly update
                     the task exit code.
    
    relates: https://pagure.io/389-ds-base/issue/50689
    
    Reviewed by: tboardaz & lkrispen(Thanks!!)
    
    Never rewrite the orginal error code