def compactify(resources):
    """Improve format of 'resources' dictionary."""
    compact = ''
    for resource in resources:
        compact += '/' + resource['owner'] + ('-' + str(resource['address']
            ) if resource['address'] is not None else '')
    return compact if compact != '' else '/'
