def _has_luns_mapped_to_initiator(self, initiator):
    'Checks whether any LUNs are mapped to the given initiator.'
    lun_list_api = netapp_api.NaElement('lun-initiator-list-map-info')
    lun_list_api.add_new_child('initiator', initiator)
    result = self.connection.invoke_successfully(lun_list_api, True)
    lun_maps_container = (result.get_child_by_name('lun-maps') or netapp_api.NaElement('none'))
    return (len(lun_maps_container.get_children()) > 0)
Checks whether any LUNs are mapped to the given initiator.
def _has_luns_mapped_to_initiator(self, initiator):
    
    lun_list_api = netapp_api.NaElement('lun-initiator-list-map-info')
    lun_list_api.add_new_child('initiator', initiator)
    result = self.connection.invoke_successfully(lun_list_api, True)
    lun_maps_container = (result.get_child_by_name('lun-maps') or netapp_api.NaElement('none'))
    return (len(lun_maps_container.get_children()) > 0)