'Get\'s a Bunch describing a host'

@_trace_time
def _get_bunch_from_host(self, connector, host_id=0, host_name=None, chap=None):

    if (not host_name):
        LOG.debug('Connector    %(conn)s', {'conn': connector})
    current_host_name = (host_name or storage.get_host_or_create_from_iqn(connector))
    initiator = connector.get('initiator', None)
    wwpns = connector.get('wwpns', [])
    if ((len(wwpns) == 0) and ('wwnns' in connector)):
        wwpns = connector.get('wwns', [])
    return {'name': current_host_name, 'initiator': initiator, 'id': host_id, 'wwpns': wwpns, 'chap': chap}
