87a069c Ticket #422 - 389-ds-base - Can't call method "getText"

2 files Authored by nhosoi 10 years ago, Committed by rmeggins 10 years ago,
    Ticket #422 - 389-ds-base - Can't call method "getText"
    
    Bug description: If a hostname which has no corresponding IP
    address associated is given to the setup-ds-admin.pl or
    setup-ds.pl (e.g., bogus.bogus.bogus.com), then DSUtil.pm
    complains with "Can't call method "getText" on an undefined
    value".
    
    Fix description: Thanks to Rich for his comments.  Following
    his suggestions, this patch prepares 2 different return types
    in checkHostname depending upon the existence of the resource
    object.  If the resource is given, the subroutine returns the
    error message.  Otherwise, it returns the array of error message.
    
    https://fedorahosted.org/389/ticket/422
    (cherry picked from commit d8cdb35018d63757de165c9d47f4734780f41c1b)