a452d19 CLIENT: Reduce code duplication

Authored and Committed by lslebodn 8 years ago
    CLIENT: Reduce code duplication
    
    Patch for #2626 will be simpler with this small refactoring
    
    Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
    
        
file modified
+27 -31