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

Authored and Committed by nhosoi 11 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